Skip to content
Myr

Touch up PR 2901

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent da0b473 · Browse files · 2 files+7 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−12 removed

  • other:+7 added−12 removed

2 files+7 added−12 removed

modified:serde/src/private/mod.rs+1 added-3 removed
5 unmodified lines
6// FIXME: #[cfg(doctest)] once https://github.com/rust-lang/rust/issues/67295 is fixed.7pub mod doc;89pub use crate::lib::clone::Clone;10pub use crate::lib::convert::{From, Into};10pub use crate::lib::convert::{From, Into, TryFrom};11pub use crate::lib::default::Default;12pub use crate::lib::fmt::{self, Formatter};13pub use crate::lib::marker::PhantomData;14pub use crate::lib::option::Option::{self, None, Some};
4 unmodified lines
1920#[cfg(any(feature = "alloc", feature = "std"))]21pub use crate::lib::{ToString, Vec};2223pub use crate::lib::convert::TryFrom;2423mod string {24 use crate::lib::*;2526 #[cfg(any(feature = "std", feature = "alloc"))]
19 unmodified lines
modified:serde/src/ser/impls.rs+6 added-9 removed
581 unmodified lines
582 }583}584585nonzero_integers! {586 NonZeroI8,587 NonZeroI16,588 NonZeroI32,589 NonZeroI64,590 NonZeroI128,591 NonZeroIsize,592 NonZeroU8,593 NonZeroU16,594 NonZeroU32,595 NonZeroU64,596 NonZeroU128,597 NonZeroUsize,598}599594nonzero_integers! {595 NonZeroI8,596 NonZeroI16,597 NonZeroI32,598 NonZeroI64,599 NonZeroI128,600 NonZeroIsize,601}602600impl<T> Serialize for Cell<T>601where602 T: Serialize + Copy,603{
440 unmodified lines