Share the import of std::num::Wrapping

This commit is contained in:
David Tolnay
2017-10-31 09:27:58 -07:00
parent eebf0f8db8
commit 501aa3ee1d
3 changed files with 2 additions and 6 deletions
-3
View File
@@ -1828,9 +1828,6 @@ where
////////////////////////////////////////////////////////////////////////////////
#[cfg(feature = "std")]
use std::num::Wrapping;
#[cfg(feature = "std")]
impl<'de, T> Deserialize<'de> for Wrapping<T>
where
+2
View File
@@ -207,6 +207,8 @@ mod lib {
#[cfg(feature = "std")]
pub use std::io::Write;
#[cfg(feature = "std")]
pub use std::num::Wrapping;
#[cfg(feature = "std")]
pub use std::path::{Path, PathBuf};
#[cfg(feature = "std")]
pub use std::time::{Duration, SystemTime, UNIX_EPOCH};
-3
View File
@@ -667,9 +667,6 @@ impl Serialize for OsString {
////////////////////////////////////////////////////////////////////////////////
#[cfg(feature = "std")]
use std::num::Wrapping;
#[cfg(feature = "std")]
impl<T: Serialize> Serialize for Wrapping<T> {
#[inline]