Skip to content

Commit

Permalink
Fix signature of u8::escape_ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
clarfonthey committed Feb 12, 2022
1 parent 9c3a3e3 commit 9efe61d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/core/src/num/mod.rs
Expand Up @@ -806,8 +806,8 @@ impl u8 {
without modifying the original"]
#[unstable(feature = "inherent_ascii_escape", issue = "77174")]
#[inline]
pub fn escape_ascii(&self) -> ascii::EscapeDefault {
ascii::escape_default(*self)
pub fn escape_ascii(self) -> ascii::EscapeDefault {
ascii::escape_default(self)
}

pub(crate) fn is_utf8_char_boundary(self) -> bool {
Expand Down

0 comments on commit 9efe61d

Please sign in to comment.