We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2918cd commit 6ab76eeCopy full SHA for 6ab76ee
crates/libm-macros/src/lib.rs
@@ -266,6 +266,7 @@ fn validate(input: &mut StructuredInput) -> syn::Result<Vec<&'static MathOpInfo>
266
}
267
268
269
+ #[allow(clippy::collapsible_if)]
270
if let Some(map) = &input.fn_extra {
271
if !map.keys().any(|key| key == "_") {
272
// No default provided; make sure every expected function is covered
@@ -282,7 +283,7 @@ fn validate(input: &mut StructuredInput) -> syn::Result<Vec<&'static MathOpInfo>
282
283
input.fn_extra_span.unwrap(),
284
format!(
285
"`fn_extra`: no default `_` pattern specified and the following \
- patterns are not covered: {fns_not_covered:#?}"
286
+ patterns are not covered: {fns_not_covered:#?}"
287
),
288
);
289
return Err(e);
0 commit comments