clippy::filter_map_identity
This commit is contained in:
parent
066eb6ab5d
commit
053aedce2c
3 changed files with 3 additions and 4 deletions
|
@ -791,7 +791,7 @@ fn fn_sig_suggestion<'tcx>(
|
|||
})
|
||||
})
|
||||
.chain(std::iter::once(if sig.c_variadic { Some("...".to_string()) } else { None }))
|
||||
.filter_map(|arg| arg)
|
||||
.flatten()
|
||||
.collect::<Vec<String>>()
|
||||
.join(", ");
|
||||
let output = sig.output();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue