From d2a597c90ddb8eec06d660640e332460884a87e1 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 8 May 2024 11:52:54 +1000 Subject: [PATCH] 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. --- units/src/lib.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/units/src/lib.rs b/units/src/lib.rs index 3273eeef6..f123034ce 100644 --- a/units/src/lib.rs +++ b/units/src/lib.rs @@ -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)]