diff options
| author | Martin Gammelsæter <martin@mg.am> | 2022-03-10 15:35:22 +0100 |
|---|---|---|
| committer | Martin Gammelsæter <martin@mg.am> | 2022-03-10 15:35:22 +0100 |
| commit | c62ab422d06410772e364c61741376e10b39fff8 (patch) | |
| tree | c7d9703c10986e14bb722863c7c5f7a22e0dcc47 /library/core/src/ascii.rs | |
| parent | 7f4f4fc34c5f404042e200c26ffb0395278d2cea (diff) | |
| download | rust-c62ab422d06410772e364c61741376e10b39fff8.tar.gz rust-c62ab422d06410772e364c61741376e10b39fff8.zip | |
Inline <EscapeDefault as Iterator>::next
Diffstat (limited to 'library/core/src/ascii.rs')
| -rw-r--r-- | library/core/src/ascii.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/src/ascii.rs b/library/core/src/ascii.rs index 6acaf7e8b89..8a4cb78cc7f 100644 --- a/library/core/src/ascii.rs +++ b/library/core/src/ascii.rs @@ -110,6 +110,8 @@ pub fn escape_default(c: u8) -> EscapeDefault { #[stable(feature = "rust1", since = "1.0.0")] impl Iterator for EscapeDefault { type Item = u8; + + #[inline] fn next(&mut self) -> Option<u8> { self.range.next().map(|i| self.data[i as usize]) } |
