Skip to content

Commit b176cf2

Browse files
committed
useless_format
1 parent b73ee2f commit b176cf2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ non_canonical_partial_ord_impl = "allow"
181181
self_named_constructors = "allow"
182182
too_many_arguments = "allow"
183183
type_complexity = "allow"
184-
useless_format = "allow"
185184
wildcard_in_or_patterns = "allow"
186185
wrong_self_convention = "allow"
187186

crates/hir-def/src/body/pretty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub(super) fn print_body_hir(db: &dyn DefDatabase, body: &Body, owner: DefWithBo
3333
}
3434
)
3535
}),
36-
DefWithBodyId::InTypeConstId(_) => format!("In type const = "),
36+
DefWithBodyId::InTypeConstId(_) => "In type const = ".to_string(),
3737
DefWithBodyId::VariantId(it) => {
3838
let loc = it.lookup(db);
3939
let enum_loc = loc.parent.lookup(db);

0 commit comments

Comments
 (0)