impl Serialize and Deserialize for std::num::NonZero*

… gated on the `unstable` Cargo feature.

These are new standard library types.
This commit is contained in:
Simon Sapin
2018-03-24 10:39:40 +01:00
committed by David Tolnay
parent 2b18b57d84
commit 05b22a06d7
5 changed files with 67 additions and 0 deletions
+4
View File
@@ -211,7 +211,11 @@ mod lib {
pub use std::sync::{Mutex, RwLock};
#[cfg(feature = "unstable")]
#[allow(deprecated)]
pub use core::nonzero::{NonZero, Zeroable};
#[cfg(feature = "unstable")]
pub use core::num;
}
////////////////////////////////////////////////////////////////////////////////