Skip to content

Commit

Permalink
Inline EscapeDebug::size_hint.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed May 8, 2024
1 parent c3202af commit e3fc97b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/char/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ impl Iterator for EscapeDebug {
}
}

#[inline]
fn size_hint(&self) -> (usize, Option<usize>) {
let n = self.len();
(n, Some(n))
Expand Down

0 comments on commit e3fc97b

Please sign in to comment.