We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5f3d27 commit ce654a9Copy full SHA for ce654a9
library/alloc/src/string.rs
@@ -44,7 +44,6 @@
44
45
use core::error::Error;
46
use core::fmt;
47
-use core::fmt::FormattingOptions;
48
use core::hash;
49
#[cfg(not(no_global_oom_handling))]
50
use core::iter::from_fn;
@@ -2606,7 +2605,8 @@ impl<T: fmt::Display + ?Sized> ToString for T {
2606
2605
#[inline]
2607
default fn to_string(&self) -> String {
2608
let mut buf = String::new();
2609
- let mut formatter = core::fmt::Formatter::new(&mut buf, FormattingOptions::new());
+ let mut formatter =
+ core::fmt::Formatter::new(&mut buf, core::fmt::FormattingOptions::new());
2610
// Bypass format_args!() to avoid write_str with zero-length strs
2611
fmt::Display::fmt(self, &mut formatter)
2612
.expect("a Display implementation returned an error unexpectedly");
0 commit comments