Skip to content

Commit ce654a9

Browse files
committed
Fixed another broken test
1 parent d5f3d27 commit ce654a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444

4545
use core::error::Error;
4646
use core::fmt;
47-
use core::fmt::FormattingOptions;
4847
use core::hash;
4948
#[cfg(not(no_global_oom_handling))]
5049
use core::iter::from_fn;
@@ -2606,7 +2605,8 @@ impl<T: fmt::Display + ?Sized> ToString for T {
26062605
#[inline]
26072606
default fn to_string(&self) -> String {
26082607
let mut buf = String::new();
2609-
let mut formatter = core::fmt::Formatter::new(&mut buf, FormattingOptions::new());
2608+
let mut formatter =
2609+
core::fmt::Formatter::new(&mut buf, core::fmt::FormattingOptions::new());
26102610
// Bypass format_args!() to avoid write_str with zero-length strs
26112611
fmt::Display::fmt(self, &mut formatter)
26122612
.expect("a Display implementation returned an error unexpectedly");

0 commit comments

Comments
 (0)