mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 04:21:04 +00:00
Touch up PR 2901
This commit is contained in:
@@ -7,7 +7,7 @@ pub mod ser;
|
|||||||
pub mod doc;
|
pub mod doc;
|
||||||
|
|
||||||
pub use crate::lib::clone::Clone;
|
pub use crate::lib::clone::Clone;
|
||||||
pub use crate::lib::convert::{From, Into};
|
pub use crate::lib::convert::{From, Into, TryFrom};
|
||||||
pub use crate::lib::default::Default;
|
pub use crate::lib::default::Default;
|
||||||
pub use crate::lib::fmt::{self, Formatter};
|
pub use crate::lib::fmt::{self, Formatter};
|
||||||
pub use crate::lib::marker::PhantomData;
|
pub use crate::lib::marker::PhantomData;
|
||||||
@@ -20,8 +20,6 @@ pub use self::string::from_utf8_lossy;
|
|||||||
#[cfg(any(feature = "alloc", feature = "std"))]
|
#[cfg(any(feature = "alloc", feature = "std"))]
|
||||||
pub use crate::lib::{ToString, Vec};
|
pub use crate::lib::{ToString, Vec};
|
||||||
|
|
||||||
pub use crate::lib::convert::TryFrom;
|
|
||||||
|
|
||||||
mod string {
|
mod string {
|
||||||
use crate::lib::*;
|
use crate::lib::*;
|
||||||
|
|
||||||
|
|||||||
@@ -582,15 +582,6 @@ macro_rules! nonzero_integers {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nonzero_integers! {
|
|
||||||
NonZeroU8,
|
|
||||||
NonZeroU16,
|
|
||||||
NonZeroU32,
|
|
||||||
NonZeroU64,
|
|
||||||
NonZeroU128,
|
|
||||||
NonZeroUsize,
|
|
||||||
}
|
|
||||||
|
|
||||||
nonzero_integers! {
|
nonzero_integers! {
|
||||||
NonZeroI8,
|
NonZeroI8,
|
||||||
NonZeroI16,
|
NonZeroI16,
|
||||||
@@ -598,6 +589,12 @@ nonzero_integers! {
|
|||||||
NonZeroI64,
|
NonZeroI64,
|
||||||
NonZeroI128,
|
NonZeroI128,
|
||||||
NonZeroIsize,
|
NonZeroIsize,
|
||||||
|
NonZeroU8,
|
||||||
|
NonZeroU16,
|
||||||
|
NonZeroU32,
|
||||||
|
NonZeroU64,
|
||||||
|
NonZeroU128,
|
||||||
|
NonZeroUsize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Serialize for Cell<T>
|
impl<T> Serialize for Cell<T>
|
||||||
|
|||||||
Reference in New Issue
Block a user