Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e3fc97b

Browse files
committedMay 8, 2024
Inline EscapeDebug::size_hint.
1 parent c3202af commit e3fc97b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎library/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)
Failed to load comments.