Skip to content

Commit

Permalink
Remove redundant unused trait impls from private types from PR #1917
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 23, 2021
1 parent 0a230e8 commit 034fe25
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions serde/src/private/de.rs
Expand Up @@ -2561,7 +2561,6 @@ where
}
}

#[derive(Debug)]
pub struct StrDeserializer<'a, E> {
value: &'a str,
marker: PhantomData<E>,
Expand All @@ -2576,8 +2575,6 @@ impl<'a, E> StrDeserializer<'a, E> {
}
}

impl_copy_clone!(StrDeserializer<'a>);

impl<'de, 'a, E> Deserializer<'de> for StrDeserializer<'a, E>
where
E: Error,
Expand All @@ -2598,7 +2595,6 @@ where
}
}

#[derive(Debug)]
pub struct BorrowedStrDeserializer<'de, E> {
value: &'de str,
marker: PhantomData<E>,
Expand All @@ -2613,8 +2609,6 @@ impl<'de, E> BorrowedStrDeserializer<'de, E> {
}
}

impl_copy_clone!(BorrowedStrDeserializer<'de>);

impl<'de, E> Deserializer<'de> for BorrowedStrDeserializer<'de, E>
where
E: Error,
Expand Down

0 comments on commit 034fe25

Please sign in to comment.