mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-27 08:47:56 +00:00
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:
committed by
David Tolnay
parent
2b18b57d84
commit
05b22a06d7
@@ -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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user