compiler: clippy::complexity fixes
This commit is contained in:
parent
b6a23b8537
commit
86a7fc840f
23 changed files with 62 additions and 95 deletions
|
@ -1582,7 +1582,7 @@ impl<'a: 'ast, 'ast, 'tcx> LateResolutionVisitor<'a, '_, 'ast, 'tcx> {
|
|||
None => ("/* fields */".to_string(), Applicability::HasPlaceholders),
|
||||
};
|
||||
let pad = match field_ids {
|
||||
Some(field_ids) if field_ids.is_empty() => "",
|
||||
Some([]) => "",
|
||||
_ => " ",
|
||||
};
|
||||
err.span_suggestion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue