We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9cae4d commit aa5c071Copy full SHA for aa5c071
1 file changed
diesel/src/pg/types/numeric.rs
@@ -1,8 +1,5 @@
1
#[cfg(feature = "bigdecimal")]
2
mod bigdecimal {
3
- // NOTE: No `std::ops::MulAssign` impl for `BigInt`
4
- #![cfg_attr(feature = "cargo-clippy", allow(assign_op_pattern))]
5
-
6
extern crate bigdecimal;
7
extern crate num_bigint;
8
extern crate num_integer;
@@ -90,6 +87,8 @@ mod bigdecimal {
90
87
}
91
88
92
89
impl<'a> From<&'a BigDecimal> for PgNumeric {
+ // NOTE(clippy): No `std::ops::MulAssign` impl for `BigInt`
+ #[cfg_attr(feature = "cargo-clippy", allow(assign_op_pattern))]
93
fn from(decimal: &'a BigDecimal) -> Self {
94
let (mut integer, scale) = decimal.as_bigint_and_exponent();
95
let scale = scale as u16;
0 commit comments