fix more clippy::style findings
match_result_ok obfuscated_if_else single_char_add writeln_empty_string collapsible_match iter_cloned_collect unnecessary_mut_passed
This commit is contained in:
parent
d9ee0f468f
commit
d8874f259a
16 changed files with 73 additions and 92 deletions
|
@ -1090,9 +1090,7 @@ impl CheckAttrVisitor<'_> {
|
|||
errors::DocTestUnknownInclude {
|
||||
path,
|
||||
value: value.to_string(),
|
||||
inner: (attr.style == AttrStyle::Inner)
|
||||
.then_some("!")
|
||||
.unwrap_or(""),
|
||||
inner: if attr.style == AttrStyle::Inner { "!" } else { "" },
|
||||
sugg: (attr.meta().unwrap().span, applicability),
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue