Skip to content

Commit 6ab76ee

Browse files
committed
fix an if statement that can be collapsed
1 parent f2918cd commit 6ab76ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/libm-macros/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ fn validate(input: &mut StructuredInput) -> syn::Result<Vec<&'static MathOpInfo>
266266
}
267267
}
268268

269+
#[allow(clippy::collapsible_if)]
269270
if let Some(map) = &input.fn_extra {
270271
if !map.keys().any(|key| key == "_") {
271272
// No default provided; make sure every expected function is covered
@@ -282,7 +283,7 @@ fn validate(input: &mut StructuredInput) -> syn::Result<Vec<&'static MathOpInfo>
282283
input.fn_extra_span.unwrap(),
283284
format!(
284285
"`fn_extra`: no default `_` pattern specified and the following \
285-
patterns are not covered: {fns_not_covered:#?}"
286+
patterns are not covered: {fns_not_covered:#?}"
286287
),
287288
);
288289
return Err(e);

0 commit comments

Comments
 (0)