Skip to content

Commit

Permalink
Sort version-conditional imports at the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 1, 2019
1 parent 650b723 commit 5fcdf0f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions serde/src/lib.rs
Expand Up @@ -139,8 +139,6 @@ mod lib {

pub use self::core::cell::{Cell, RefCell};
pub use self::core::clone::{self, Clone};
#[cfg(core_reverse)]
pub use self::core::cmp::Reverse;
pub use self::core::convert::{self, From, Into};
pub use self::core::default::{self, Default};
pub use self::core::fmt::{self, Debug, Display};
Expand Down Expand Up @@ -204,17 +202,20 @@ mod lib {
#[cfg(feature = "std")]
pub use std::time::{SystemTime, UNIX_EPOCH};

#[cfg(any(core_duration, feature = "std"))]
pub use self::core::time::Duration;

#[cfg(range_inclusive)]
pub use self::core::ops::RangeInclusive;

#[cfg(all(feature = "std", collections_bound))]
pub use std::collections::Bound;

#[cfg(core_reverse)]
pub use self::core::cmp::Reverse;

#[cfg(ops_bound)]
pub use self::core::ops::Bound;

#[cfg(range_inclusive)]
pub use self::core::ops::RangeInclusive;

#[cfg(any(core_duration, feature = "std"))]
pub use self::core::time::Duration;
}

////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 5fcdf0f

Please sign in to comment.