Skip to content

Commit aa5c071

Browse files
committed
Move clippy cfg_attr for bigdecimal to function scope
1 parent c9cae4d commit aa5c071

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

diesel/src/pg/types/numeric.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#[cfg(feature = "bigdecimal")]
22
mod bigdecimal {
3-
// NOTE: No `std::ops::MulAssign` impl for `BigInt`
4-
#![cfg_attr(feature = "cargo-clippy", allow(assign_op_pattern))]
5-
63
extern crate bigdecimal;
74
extern crate num_bigint;
85
extern crate num_integer;
@@ -90,6 +87,8 @@ mod bigdecimal {
9087
}
9188

9289
impl<'a> From<&'a BigDecimal> for PgNumeric {
90+
// NOTE(clippy): No `std::ops::MulAssign` impl for `BigInt`
91+
#[cfg_attr(feature = "cargo-clippy", allow(assign_op_pattern))]
9392
fn from(decimal: &'a BigDecimal) -> Self {
9493
let (mut integer, scale) = decimal.as_bigint_and_exponent();
9594
let scale = scale as u16;

0 commit comments

Comments
 (0)