Skip to content

Commit

Permalink
unit: Group re-exports
Browse files Browse the repository at this point in the history
As is customary group the public re-exports differently to other use
statements and tell rustfmt to skip them.

Refactor only, no logic changes.
  • Loading branch information
tcharding committed May 8, 2024
1 parent d242125 commit d2a597c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions units/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit d2a597c

Please sign in to comment.