Skip to content

Commit

Permalink
FlatMapAccess and FlatStructAccess does not need to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed May 8, 2023
1 parent c399e9c commit a901f50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serde/src/private/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2841,7 +2841,7 @@ where
}

#[cfg(any(feature = "std", feature = "alloc"))]
pub struct FlatMapAccess<'a, 'de: 'a, E> {
struct FlatMapAccess<'a, 'de: 'a, E> {
iter: slice::Iter<'a, Option<(Content<'de>, Content<'de>)>>,
pending_content: Option<&'a Content<'de>>,
_marker: PhantomData<E>,
Expand Down Expand Up @@ -2897,7 +2897,7 @@ where
}

#[cfg(any(feature = "std", feature = "alloc"))]
pub struct FlatStructAccess<'a, 'de: 'a, E> {
struct FlatStructAccess<'a, 'de: 'a, E> {
iter: slice::IterMut<'a, Option<(Content<'de>, Content<'de>)>>,
pending_content: Option<Content<'de>>,
fields: &'static [&'static str],
Expand Down

0 comments on commit a901f50

Please sign in to comment.