mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 23:24:29 +00:00
useless_format
This commit is contained in:
parent
b73ee2f50d
commit
b176cf2478
2 changed files with 1 additions and 2 deletions
|
@ -181,7 +181,6 @@ non_canonical_partial_ord_impl = "allow"
|
|||
self_named_constructors = "allow"
|
||||
too_many_arguments = "allow"
|
||||
type_complexity = "allow"
|
||||
useless_format = "allow"
|
||||
wildcard_in_or_patterns = "allow"
|
||||
wrong_self_convention = "allow"
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ pub(super) fn print_body_hir(db: &dyn DefDatabase, body: &Body, owner: DefWithBo
|
|||
}
|
||||
)
|
||||
}),
|
||||
DefWithBodyId::InTypeConstId(_) => format!("In type const = "),
|
||||
DefWithBodyId::InTypeConstId(_) => "In type const = ".to_string(),
|
||||
DefWithBodyId::VariantId(it) => {
|
||||
let loc = it.lookup(db);
|
||||
let enum_loc = loc.parent.lookup(db);
|
||||
|
|
Loading…
Reference in a new issue