fix couple of clippy findings:
filter_map_identity iter_kv_map needless_question_mark redundant_at_rest_pattern filter_next derivable_impls
This commit is contained in:
parent
cec34a43b1
commit
adf759bf6a
6 changed files with 8 additions and 16 deletions
|
@ -401,7 +401,7 @@ fn parse_clobber_abi<'a>(p: &mut Parser<'a>, args: &mut AsmArgs) -> PResult<'a,
|
|||
// should have errored above during parsing
|
||||
[] => unreachable!(),
|
||||
[(abi, _span)] => args.clobber_abis.push((*abi, full_span)),
|
||||
[abis @ ..] => {
|
||||
abis => {
|
||||
for (abi, span) in abis {
|
||||
args.clobber_abis.push((*abi, *span));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue