mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
perf(serde_v8/de): implement SeqAccess size_hint (#9975)
This commit is contained in:
parent
8257f51d7e
commit
105c0ee3b4
1 changed files with 4 additions and 0 deletions
|
@ -534,6 +534,10 @@ impl<'de> de::SeqAccess<'de> for SeqAccess<'_, '_, '_> {
|
|||
Ok(None)
|
||||
}
|
||||
}
|
||||
|
||||
fn size_hint(&self) -> Option<usize> {
|
||||
Some((self.len - self.pos) as usize)
|
||||
}
|
||||
}
|
||||
|
||||
struct EnumAccess<'a, 'b, 's> {
|
||||
|
|
Loading…
Reference in a new issue