mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-05-08 12:27:58 +00:00
Sort version-conditional imports at the bottom
This commit is contained in:
+10
-9
@@ -139,8 +139,6 @@ mod lib {
|
|||||||
|
|
||||||
pub use self::core::cell::{Cell, RefCell};
|
pub use self::core::cell::{Cell, RefCell};
|
||||||
pub use self::core::clone::{self, Clone};
|
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::convert::{self, From, Into};
|
||||||
pub use self::core::default::{self, Default};
|
pub use self::core::default::{self, Default};
|
||||||
pub use self::core::fmt::{self, Debug, Display};
|
pub use self::core::fmt::{self, Debug, Display};
|
||||||
@@ -204,17 +202,20 @@ mod lib {
|
|||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
pub use std::time::{SystemTime, UNIX_EPOCH};
|
pub use std::time::{SystemTime, UNIX_EPOCH};
|
||||||
|
|
||||||
#[cfg(any(core_duration, feature = "std"))]
|
#[cfg(all(feature = "std", collections_bound))]
|
||||||
pub use self::core::time::Duration;
|
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)]
|
#[cfg(range_inclusive)]
|
||||||
pub use self::core::ops::RangeInclusive;
|
pub use self::core::ops::RangeInclusive;
|
||||||
|
|
||||||
#[cfg(all(feature = "std", collections_bound))]
|
#[cfg(any(core_duration, feature = "std"))]
|
||||||
pub use std::collections::Bound;
|
pub use self::core::time::Duration;
|
||||||
|
|
||||||
#[cfg(ops_bound)]
|
|
||||||
pub use self::core::ops::Bound;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user