Inline EscapeDebug::size_hint.

This commit is contained in:
Markus Reiter 2024-04-23 22:16:29 +02:00
parent c3202afa28
commit e3fc97be2b
No known key found for this signature in database
GPG key ID: 245293B51702655B

View file

@ -339,6 +339,7 @@ impl Iterator for EscapeDebug {
}
}
#[inline]
fn size_hint(&self) -> (usize, Option<usize>) {
let n = self.len();
(n, Some(n))