File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -704,7 +704,7 @@ impl AsciiChar {
704704 // the unprintable characters from 0x0 to 0x1f, ordered correctly.
705705 // As `b` is guaranteed to be within 0x0 to 0x1f, the conversion represents a
706706 // valid character.
707- b @ 0x0 ..=0x1f => unsafe { mem :: transmute ( '␀' as u32 + b as u32 ) } ,
707+ b @ 0x0 ..=0x1f => unsafe { char :: from_u32_unchecked ( '␀' as u32 + b as u32 ) } ,
708708
709709 // 0x7f (delete) has it's own character at codepoint 0x2420, not 0x247f, so it is special
710710 // cased to return it's character
@@ -794,8 +794,8 @@ macro_rules! impl_into_partial_eq_ord {
794794 ( $wider: ty, $to_wider: expr) => {
795795 impl From <AsciiChar > for $wider {
796796 #[ inline]
797- fn from( a : AsciiChar ) -> $wider {
798- $to_wider( a )
797+ fn from( chr : AsciiChar ) -> $wider {
798+ $to_wider( chr )
799799 }
800800 }
801801 impl PartialEq <$wider> for AsciiChar {
Original file line number Diff line number Diff line change @@ -226,15 +226,15 @@ impl AsciiStr {
226226 /// Returns an iterator over the characters of the `AsciiStr`.
227227 #[ inline]
228228 #[ must_use]
229- pub fn chars ( & self ) -> Chars {
229+ pub fn chars ( & self ) -> Chars < ' _ > {
230230 Chars ( self . slice . iter ( ) )
231231 }
232232
233233 /// Returns an iterator over the characters of the `AsciiStr` which allows you to modify the
234234 /// value of each `AsciiChar`.
235235 #[ inline]
236236 #[ must_use]
237- pub fn chars_mut ( & mut self ) -> CharsMut {
237+ pub fn chars_mut ( & mut self ) -> CharsMut < ' _ > {
238238 CharsMut ( self . slice . iter_mut ( ) )
239239 }
240240
You can’t perform that action at this time.
0 commit comments