Skip to content

Commit b882685

Browse files
committed
Inline EscapeDebug::size_hint.
1 parent c567ea1 commit b882685

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: core/src/char/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ impl Iterator for EscapeDebug {
339339
}
340340
}
341341

342+
#[inline]
342343
fn size_hint(&self) -> (usize, Option<usize>) {
343344
let n = self.len();
344345
(n, Some(n))

0 commit comments

Comments
 (0)