|
70 | 70 | type Error = Amf0Error; |
71 | 71 |
|
72 | 72 | serde::forward_to_deserialize_any! { |
73 | | - ignored_any |
| 73 | + tuple tuple_struct ignored_any identifier |
74 | 74 | } |
75 | 75 |
|
76 | 76 | impl_de_number!(deserialize_i8, visit_i8); |
@@ -188,7 +188,7 @@ where |
188 | 188 | where |
189 | 189 | V: serde::de::Visitor<'de>, |
190 | 190 | { |
191 | | - if matches!(self.peek_marker()?, Amf0Marker::Null | Amf0Marker::Undefined) { |
| 191 | + if let Amf0Marker::Null | Amf0Marker::Undefined = self.peek_marker()? { |
192 | 192 | self.decode_null()?; |
193 | 193 | visitor.visit_none() |
194 | 194 | } else { |
@@ -242,20 +242,6 @@ where |
242 | 242 | } |
243 | 243 | } |
244 | 244 |
|
245 | | - fn deserialize_tuple<V>(self, _len: usize, visitor: V) -> Result<V::Value, Self::Error> |
246 | | - where |
247 | | - V: serde::de::Visitor<'de>, |
248 | | - { |
249 | | - self.deserialize_seq(visitor) |
250 | | - } |
251 | | - |
252 | | - fn deserialize_tuple_struct<V>(self, _name: &'static str, len: usize, visitor: V) -> Result<V::Value, Self::Error> |
253 | | - where |
254 | | - V: serde::de::Visitor<'de>, |
255 | | - { |
256 | | - self.deserialize_tuple(len, visitor) |
257 | | - } |
258 | | - |
259 | 245 | fn deserialize_map<V>(self, visitor: V) -> Result<V::Value, Self::Error> |
260 | 246 | where |
261 | 247 | V: serde::de::Visitor<'de>, |
@@ -298,18 +284,6 @@ where |
298 | 284 | { |
299 | 285 | visitor.visit_enum(Enum { de: self }) |
300 | 286 | } |
301 | | - |
302 | | - fn deserialize_identifier<V>(self, visitor: V) -> Result<V::Value, Self::Error> |
303 | | - where |
304 | | - V: serde::de::Visitor<'de>, |
305 | | - { |
306 | | - if let Amf0Marker::String | Amf0Marker::LongString = self.peek_marker()? { |
307 | | - let s = self.decode_string()?; |
308 | | - s.into_deserializer().deserialize_identifier(visitor) |
309 | | - } else { |
310 | | - self.deserialize_any(visitor) |
311 | | - } |
312 | | - } |
313 | 287 | } |
314 | 288 |
|
315 | 289 | struct StrictArray<'a, R> { |
|
0 commit comments