Skip to content

Commit c62ab42

Browse files
committed
Inline <EscapeDefault as Iterator>::next
1 parent 7f4f4fc commit c62ab42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/ascii.rs

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ pub fn escape_default(c: u8) -> EscapeDefault {
110110
#[stable(feature = "rust1", since = "1.0.0")]
111111
impl Iterator for EscapeDefault {
112112
type Item = u8;
113+
114+
#[inline]
113115
fn next(&mut self) -> Option<u8> {
114116
self.range.next().map(|i| self.data[i as usize])
115117
}

0 commit comments

Comments
 (0)