Share the import of std::num::Wrapping
This commit is contained in:
parent
eebf0f8db8
commit
501aa3ee1d
@ -1828,9 +1828,6 @@ where
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
use std::num::Wrapping;
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl<'de, T> Deserialize<'de> for Wrapping<T>
|
||||
where
|
||||
|
@ -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};
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user