We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb0872 commit 56fcd59Copy full SHA for 56fcd59
library/core/src/displaywrapper.rs
@@ -187,6 +187,7 @@ impl<T: Displayable> Display for DisplayWrapper<T> {
187
buf[cur] = b'-';
188
}
189
190
+ // SAFETY: The buffer is initially ASCII and we only write ASCII bytes to it.
191
let s = unsafe { core::str::from_utf8_unchecked(&buf[cur..]) };
192
f.write_str(s)
193
0 commit comments