diff options
| author | ltdk <usr@ltdk.xyz> | 2022-02-12 13:15:10 -0500 |
|---|---|---|
| committer | ltdk <usr@ltdk.xyz> | 2022-02-12 13:15:10 -0500 |
| commit | 9efe61df7f609de8d90fb7f40b29ea6fe72ff205 (patch) | |
| tree | ef558814a2643ffd838f4a1846a1a6cf2ba349b0 | |
| parent | 9c3a3e3d5bd65fd534336101a06f7b11396c3208 (diff) | |
| download | rust-9efe61df7f609de8d90fb7f40b29ea6fe72ff205.tar.gz rust-9efe61df7f609de8d90fb7f40b29ea6fe72ff205.zip | |
Fix signature of u8::escape_ascii
| -rw-r--r-- | library/core/src/num/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/num/mod.rs b/library/core/src/num/mod.rs index 864a253299f..40bd706da8c 100644 --- a/library/core/src/num/mod.rs +++ b/library/core/src/num/mod.rs @@ -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 { |
