We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ced8e2 commit 1e37e68Copy full SHA for 1e37e68
support/linting/src/forbid_as_primitive.rs
@@ -36,7 +36,10 @@ impl<'ast> Visit<'ast> for AsPrimitiveVisitor {
36
}
37
38
fn is_as_primitive(ident: &Ident) -> bool {
39
- matches!(ident.to_string().as_str(), "as_u32" | "as_u64" | "as_u128" | "as_usize")
+ matches!(
40
+ ident.to_string().as_str(),
41
+ "as_u32" | "as_u64" | "as_u128" | "as_usize"
42
+ )
43
44
45
#[cfg(test)]
0 commit comments