Skip to content

Commit

Permalink
Merge pull request #1926 from attente/core-num-wrapping
Browse files Browse the repository at this point in the history
Allow serializing of Wrapping without std
  • Loading branch information
dtolnay committed Dec 5, 2020
2 parents 8472192 + ede40bd commit 4a335f8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion serde/src/de/impls.rs
Expand Up @@ -2564,7 +2564,6 @@ where

////////////////////////////////////////////////////////////////////////////////

#[cfg(feature = "std")]
impl<'de, T> Deserialize<'de> for Wrapping<T>
where
T: Deserialize<'de>,
Expand Down
3 changes: 1 addition & 2 deletions serde/src/lib.rs
Expand Up @@ -166,6 +166,7 @@ mod lib {
pub use self::core::default::{self, Default};
pub use self::core::fmt::{self, Debug, Display};
pub use self::core::marker::{self, PhantomData};
pub use self::core::num::Wrapping;
pub use self::core::ops::Range;
pub use self::core::option::{self, Option};
pub use self::core::result::{self, Result};
Expand Down Expand Up @@ -217,8 +218,6 @@ 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::sync::{Mutex, RwLock};
Expand Down
1 change: 0 additions & 1 deletion serde/src/ser/impls.rs
Expand Up @@ -824,7 +824,6 @@ impl Serialize for OsString {

////////////////////////////////////////////////////////////////////////////////

#[cfg(feature = "std")]
impl<T> Serialize for Wrapping<T>
where
T: Serialize,
Expand Down

0 comments on commit 4a335f8

Please sign in to comment.