Skip to content

Commit 3efa8a4

Browse files
committed
Move allow attribute to specific function
1 parent 24b3670 commit 3efa8a4

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

vm/src/builtins/make_module.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ mod decl {
585585
}
586586
}
587587

588+
#[allow(clippy::suspicious_else_formatting)]
588589
#[pyfunction]
589590
fn pow(
590591
x: PyObjectRef,

vm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
88
// for methods like vm.to_str(), not the typical use of 'to' as a method prefix
99
#![allow(clippy::wrong_self_convention, clippy::implicit_hasher)]
10-
#![allow(clippy::suspicious_else_formatting)]
1110
// to allow `mod foo {}` in foo.rs; clippy thinks this is a mistake/misunderstanding of
1211
// how `mod` works, but we want this sometimes for pymodule declarations
1312
#![allow(clippy::module_inception)]

0 commit comments

Comments
 (0)