Skip to content

Commit 1e37e68

Browse files
committed
fmt
1 parent 5ced8e2 commit 1e37e68

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

support/linting/src/forbid_as_primitive.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ impl<'ast> Visit<'ast> for AsPrimitiveVisitor {
3636
}
3737

3838
fn is_as_primitive(ident: &Ident) -> bool {
39-
matches!(ident.to_string().as_str(), "as_u32" | "as_u64" | "as_u128" | "as_usize")
39+
matches!(
40+
ident.to_string().as_str(),
41+
"as_u32" | "as_u64" | "as_u128" | "as_usize"
42+
)
4043
}
4144

4245
#[cfg(test)]

0 commit comments

Comments
 (0)