From 5fcdf0ff2be83fc73e29d73ea69674f10e791ebc Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 28 Feb 2019 16:53:13 -0800 Subject: [PATCH] Sort version-conditional imports at the bottom --- serde/src/lib.rs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/serde/src/lib.rs b/serde/src/lib.rs index 17d07dc3..03313821 100644 --- a/serde/src/lib.rs +++ b/serde/src/lib.rs @@ -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}; @@ -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(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(all(feature = "std", collections_bound))] - pub use std::collections::Bound; - - #[cfg(ops_bound)] - pub use self::core::ops::Bound; + #[cfg(any(core_duration, feature = "std"))] + pub use self::core::time::Duration; } ////////////////////////////////////////////////////////////////////////////////