Skip to content

Commit 6e91134

Browse files
committed
lint: allow the identity-op warning
Ignores the warning for the `clippy::identity_op` to allow using ranged bitfield CSR macro arguments with a leading `0`.
1 parent d85beaf commit 6e91134

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

riscv/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#![no_std]
3636
#![allow(clippy::missing_safety_doc)]
3737
#![allow(clippy::eq_op)]
38+
#![allow(clippy::identity_op)]
3839

3940
pub use paste::paste;
4041

0 commit comments

Comments
 (0)