Implement IdentifierDeserializer for u64 instead of u32 because all identifiers deserialized with visit_u64

This commit is contained in:
Mingun 2020-10-22 10:10:32 +05:00
parent f6eb34a830
commit 34de1e00c8

View File

@ -2542,11 +2542,11 @@ pub trait IdentifierDeserializer<'de, E: Error> {
fn from(self) -> Self::Deserializer;
}
impl<'de, E> IdentifierDeserializer<'de, E> for u32
impl<'de, E> IdentifierDeserializer<'de, E> for u64
where
E: Error,
{
type Deserializer = <u32 as IntoDeserializer<'de, E>>::Deserializer;
type Deserializer = <u64 as IntoDeserializer<'de, E>>::Deserializer;
fn from(self) -> Self::Deserializer {
self.into_deserializer()