Skip to content

Commit d5b6aab

Browse files
a4lgAmanieu
authored andcommitted
stdarch-verify: Modernization of the coding style
It modernizes the coding style of the crate stdarch-verify by dealing with Clippy warnings (allows clippy::collapsible_if but review may be required for later changes). Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 4/4
1 parent e647260 commit d5b6aab

File tree

1 file changed

+2
-0
lines changed
  • crates/stdarch-verify/src

1 file changed

+2
-0
lines changed

crates/stdarch-verify/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ fn find_target_feature(attrs: &[syn::Attribute]) -> Option<syn::Lit> {
498498
attrs
499499
.iter()
500500
.flat_map(|a| {
501+
#[allow(clippy::collapsible_if)]
501502
if let syn::Meta::List(ref l) = a.meta {
502503
if l.path.is_ident("target_feature") {
503504
if let Ok(l) =
@@ -526,6 +527,7 @@ fn find_doc(attrs: &[syn::Attribute]) -> String {
526527
attrs
527528
.iter()
528529
.filter_map(|a| {
530+
#[allow(clippy::collapsible_if)]
529531
if let syn::Meta::NameValue(ref l) = a.meta {
530532
if l.path.is_ident("doc") {
531533
if let syn::Expr::Lit(syn::ExprLit {

0 commit comments

Comments
 (0)