diff --git a/serde_v8/src/de.rs b/serde_v8/src/de.rs index 0816514a67..4de2f58170 100644 --- a/serde_v8/src/de.rs +++ b/serde_v8/src/de.rs @@ -534,6 +534,10 @@ impl<'de> de::SeqAccess<'de> for SeqAccess<'_, '_, '_> { Ok(None) } } + + fn size_hint(&self) -> Option { + Some((self.len - self.pos) as usize) + } } struct EnumAccess<'a, 'b, 's> {