Skip to content

Commit aa5aa61

Browse files
committed
Touch up PR 2901
1 parent da0b473 commit aa5aa61

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

serde/src/private/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub mod ser;
77
pub mod doc;
88

99
pub use crate::lib::clone::Clone;
10-
pub use crate::lib::convert::{From, Into};
10+
pub use crate::lib::convert::{From, Into, TryFrom};
1111
pub use crate::lib::default::Default;
1212
pub use crate::lib::fmt::{self, Formatter};
1313
pub use crate::lib::marker::PhantomData;
@@ -20,8 +20,6 @@ pub use self::string::from_utf8_lossy;
2020
#[cfg(any(feature = "alloc", feature = "std"))]
2121
pub use crate::lib::{ToString, Vec};
2222

23-
pub use crate::lib::convert::TryFrom;
24-
2523
mod string {
2624
use crate::lib::*;
2725

serde/src/ser/impls.rs

+6-9
Original file line numberDiff line numberDiff line change
@@ -582,22 +582,19 @@ macro_rules! nonzero_integers {
582582
}
583583
}
584584

585-
nonzero_integers! {
586-
NonZeroU8,
587-
NonZeroU16,
588-
NonZeroU32,
589-
NonZeroU64,
590-
NonZeroU128,
591-
NonZeroUsize,
592-
}
593-
594585
nonzero_integers! {
595586
NonZeroI8,
596587
NonZeroI16,
597588
NonZeroI32,
598589
NonZeroI64,
599590
NonZeroI128,
600591
NonZeroIsize,
592+
NonZeroU8,
593+
NonZeroU16,
594+
NonZeroU32,
595+
NonZeroU64,
596+
NonZeroU128,
597+
NonZeroUsize,
601598
}
602599

603600
impl<T> Serialize for Cell<T>

0 commit comments

Comments
 (0)