mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
Fix signature of u8::escape_ascii
This commit is contained in:
@@ -806,8 +806,8 @@ pub const fn is_ascii_control(&self) -> bool {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user