Fix signature of u8::escape_ascii
This commit is contained in:
parent
9c3a3e3d5b
commit
9efe61df7f
@ -806,8 +806,8 @@ impl u8 {
|
|||||||
without modifying the original"]
|
without modifying the original"]
|
||||||
#[unstable(feature = "inherent_ascii_escape", issue = "77174")]
|
#[unstable(feature = "inherent_ascii_escape", issue = "77174")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn escape_ascii(&self) -> ascii::EscapeDefault {
|
pub fn escape_ascii(self) -> ascii::EscapeDefault {
|
||||||
ascii::escape_default(*self)
|
ascii::escape_default(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn is_utf8_char_boundary(self) -> bool {
|
pub(crate) fn is_utf8_char_boundary(self) -> bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user