Skip to content

Commit 9a0cf23

Browse files
committed
Add cfg_attr to clippy warning
1 parent 1169f44 commit 9a0cf23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

diesel/src/pg/types/numeric.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ mod bigdecimal {
9494

9595
// Ensure that the decimal will always lie on a digit boundary
9696
for _ in 0..(4 - scale % 4) {
97-
#[allow(assign_op_pattern)] // No `std::ops::MulAssign` impl for `BigInt`
97+
// NOTE: No `std::ops::MulAssign` impl for `BigInt`
98+
#[cfg_attr(feature = "cargo-clippy", allow(assign_op_pattern))]
9899
integer = integer * 10;
99100
}
100101
let integer = integer.to_biguint().expect("integer is always positive");

0 commit comments

Comments
 (0)