We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cfg_attr
1 parent 1169f44 commit 9a0cf23Copy full SHA for 9a0cf23
1 file changed
diesel/src/pg/types/numeric.rs
@@ -94,7 +94,8 @@ mod bigdecimal {
94
95
// Ensure that the decimal will always lie on a digit boundary
96
for _ in 0..(4 - scale % 4) {
97
- #[allow(assign_op_pattern)] // No `std::ops::MulAssign` impl for `BigInt`
+ // NOTE: No `std::ops::MulAssign` impl for `BigInt`
98
+ #[cfg_attr(feature = "cargo-clippy", allow(assign_op_pattern))]
99
integer = integer * 10;
100
}
101
let integer = integer.to_biguint().expect("integer is always positive");
0 commit comments