Skip to content

Commit 1363dc6

Browse files
committed
Fix unused import clippy lint
There is an unused import when run with --no-default-features. Feature gate the import correctly.
1 parent f2e544e commit 1363dc6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

units/src/amount/tests.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ use core::num::{NonZeroI64, NonZeroU64};
1111
use std::panic;
1212

1313
use super::*;
14-
use crate::result::{MathOp, NumOpResult};
14+
use crate::result::NumOpResult;
15+
#[cfg(feature = "alloc")]
16+
use crate::result::MathOp;
1517
#[cfg(feature = "alloc")]
1618
use crate::{FeeRate, Weight};
1719

0 commit comments

Comments
 (0)