unit: Group re-exports

As is customary group the public re-exports differently to other use
statements and tell rustfmt to skip them.

Refactor only, no logic changes.
This commit is contained in:
Tobin C. Harding 2024-05-08 11:52:54 +10:00
parent d242125ae4
commit d2a597c90d
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 7 additions and 5 deletions

View File

@ -47,13 +47,15 @@ pub mod weight;
#[doc(inline)]
pub use self::amount::{Amount, SignedAmount};
// ParseIntError is used by other modules, so we re-export it.
#[cfg(feature = "alloc")]
#[doc(inline)]
pub use self::parse::ParseIntError;
#[cfg(feature = "alloc")]
#[doc(inline)]
pub use self::{fee_rate::FeeRate, weight::Weight};
#[rustfmt::skip]
pub use self::{
fee_rate::FeeRate,
// ParseIntError is used by other modules, so we re-export it.
parse::ParseIntError,
weight::Weight
};
#[rustfmt::skip]
#[allow(unused_imports)]