Skip to content

Commit 9efe61d

Browse files
committed
Fix signature of u8::escape_ascii
1 parent 9c3a3e3 commit 9efe61d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/num/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,8 @@ impl u8 {
806806
without modifying the original"]
807807
#[unstable(feature = "inherent_ascii_escape", issue = "77174")]
808808
#[inline]
809-
pub fn escape_ascii(&self) -> ascii::EscapeDefault {
810-
ascii::escape_default(*self)
809+
pub fn escape_ascii(self) -> ascii::EscapeDefault {
810+
ascii::escape_default(self)
811811
}
812812

813813
pub(crate) fn is_utf8_char_boundary(self) -> bool {

0 commit comments

Comments
 (0)