mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-31 15:49:48 +00:00
Share the import of std::num::Wrapping
This commit is contained in:
3 files changed
+2
-6
No files matched your search
@@ -1828,9 +1828,6 @@ where
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
|
||||||
use std::num::Wrapping;
|
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
impl<'de, T> Deserialize<'de> for Wrapping<T>
|
impl<'de, T> Deserialize<'de> for Wrapping<T>
|
||||||
where
|
where
|
||||||
|
|||||||
@@ -207,6 +207,8 @@ mod lib {
|
|||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
pub use std::io::Write;
|
pub use std::io::Write;
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
|
pub use std::num::Wrapping;
|
||||||
|
#[cfg(feature = "std")]
|
||||||
pub use std::path::{Path, PathBuf};
|
pub use std::path::{Path, PathBuf};
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
pub use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
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")]
|
#[cfg(feature = "std")]
|
||||||
impl<T: Serialize> Serialize for Wrapping<T> {
|
impl<T: Serialize> Serialize for Wrapping<T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
Reference in new issue
Block a user