Remove redundant unused trait impls from private types from PR #1917

This commit is contained in:
David Tolnay 2021-01-23 12:54:31 -08:00
parent 0a230e8598
commit 034fe25d5b
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -2561,7 +2561,6 @@ where
}
}
#[derive(Debug)]
pub struct StrDeserializer<'a, E> {
value: &'a str,
marker: PhantomData<E>,
@ -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,
@ -2598,7 +2595,6 @@ where
}
}
#[derive(Debug)]
pub struct BorrowedStrDeserializer<'de, E> {
value: &'de str,
marker: PhantomData<E>,
@ -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,