Fix incorrect copy-pasted code
It's late.
This commit is contained in:
parent
a907d9aad2
commit
01af316867
1 changed files with 3 additions and 3 deletions
|
@ -905,12 +905,12 @@ impl<I: Iterator<Item = u8>> Iterator for DecodeUtf8<I> {
|
|||
|
||||
#[inline]
|
||||
fn size_hint(&self) -> (usize, Option<usize>) {
|
||||
let len = self.0.len();
|
||||
let (lower, upper) = self.0.size_hint();
|
||||
|
||||
// A code point is at most 4 bytes long.
|
||||
let min_code_points = len / 4;
|
||||
let min_code_points = lower / 4;
|
||||
|
||||
(min_code_points, Some(len))
|
||||
(min_code_points, upper)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue