diff options
| author | Markus Reiter <me@reitermark.us> | 2025-03-08 20:29:17 +0100 |
|---|---|---|
| committer | Markus Reiter <me@reitermark.us> | 2025-06-15 22:08:41 +0200 |
| commit | ce457e1c2628e41a02bc2dcdc44346e7c7d0a9e2 (patch) | |
| tree | b11b833747d2e3f612f5927530a4333c0fae0cbf /library/core/src/slice/ascii.rs | |
| parent | 49a8ba06848fa8f282fe9055b4178350970bb0ce (diff) | |
| download | rust-ce457e1c2628e41a02bc2dcdc44346e7c7d0a9e2.tar.gz rust-ce457e1c2628e41a02bc2dcdc44346e7c7d0a9e2.zip | |
Get rid of `EscapeDebugInner`.
Diffstat (limited to 'library/core/src/slice/ascii.rs')
| -rw-r--r-- | library/core/src/slice/ascii.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/ascii.rs b/library/core/src/slice/ascii.rs index b4d9a1b1ca4..181ae82959c 100644 --- a/library/core/src/slice/ascii.rs +++ b/library/core/src/slice/ascii.rs @@ -308,7 +308,7 @@ impl<'a> fmt::Display for EscapeAscii<'a> { if let Some(&b) = bytes.first() { // guaranteed to be non-empty, better to write it as a str - f.write_str(ascii::escape_default(b).as_str())?; + fmt::Display::fmt(&ascii::escape_default(b), f)?; bytes = &bytes[1..]; } } |
