mirror of
https://gitee.com/openharmony/third_party_rust_serde
synced 2024-11-27 09:01:43 +00:00
Implement IdentifierDeserializer for u64 instead of u32 because all identifiers deserialized with visit_u64
This commit is contained in:
parent
f6eb34a830
commit
34de1e00c8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user