reorder deserializer definitions

This commit is contained in:
mos 2024-07-27 16:37:30 +02:00
parent 87048fc83b
commit 73f2efa476
1 changed files with 7 additions and 7 deletions

View File

@ -110,13 +110,6 @@ impl<R: BufRead> Deserializer<R> {
impl<'de, 'a, R: BufRead> de::Deserializer<'de> for &'a mut Deserializer<R> {
type Error = Error;
fn deserialize_i64<V>(self, visitor: V) -> Result<V::Value>
where
V: Visitor<'de>,
{
visitor.visit_i64(self.parse_const()? as i64)
}
fn deserialize_u8<V>(self, visitor: V) -> Result<V::Value>
where
V: Visitor<'de>,
@ -172,6 +165,13 @@ impl<'de, 'a, R: BufRead> de::Deserializer<'de> for &'a mut Deserializer<R> {
visitor.visit_i32(self.parse_const()? as i32)
}
fn deserialize_i64<V>(self, visitor: V) -> Result<V::Value>
where
V: Visitor<'de>,
{
visitor.visit_i64(self.parse_const()? as i64)
}
fn deserialize_f32<V>(self, _visitor: V) -> Result<V::Value>
where
V: Visitor<'de>,