Skip to content

Commit 289b231

Browse files
EliasHolzmanngitbot
authored and
gitbot
committed
Fixed another broken test
1 parent 2b5c298 commit 289b231

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alloc/src/string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#![stable(feature = "rust1", since = "1.0.0")]
4444

4545
use core::error::Error;
46-
use core::fmt::FormattingOptions;
4746
use core::iter::FusedIterator;
4847
#[cfg(not(no_global_oom_handling))]
4948
use core::iter::from_fn;
@@ -2683,7 +2682,8 @@ impl<T: fmt::Display + ?Sized> ToString for T {
26832682
#[inline]
26842683
default fn to_string(&self) -> String {
26852684
let mut buf = String::new();
2686-
let mut formatter = core::fmt::Formatter::new(&mut buf, FormattingOptions::new());
2685+
let mut formatter =
2686+
core::fmt::Formatter::new(&mut buf, core::fmt::FormattingOptions::new());
26872687
// Bypass format_args!() to avoid write_str with zero-length strs
26882688
fmt::Display::fmt(self, &mut formatter)
26892689
.expect("a Display implementation returned an error unexpectedly");

0 commit comments

Comments
 (0)