Skip to content

Commit a9788c7

Browse files
lu-zerognzlbg
authored andcommitted
Use find_map to make clippy happy
1 parent d127a72 commit a9788c7

File tree

1 file changed

+1
-2
lines changed
  • crates/stdsimd-verify/src

1 file changed

+1
-2
lines changed

crates/stdsimd-verify/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,10 @@ fn find_target_feature(attrs: &[syn::Attribute]) -> Option<syn::Lit> {
332332
syn::NestedMeta::Meta(m) => Some(m),
333333
syn::NestedMeta::Literal(_) => None,
334334
})
335-
.filter_map(|m| match m {
335+
.find_map(|m| match m {
336336
syn::Meta::NameValue(ref i) if i.ident == "enable" => Some(i.clone().lit),
337337
_ => None,
338338
})
339-
.next()
340339
}
341340

342341
fn find_required_const(attrs: &[syn::Attribute]) -> Vec<usize> {

0 commit comments

Comments
 (0)