File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 43
43
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
44
44
45
45
use core:: error:: Error ;
46
- use core:: fmt:: FormattingOptions ;
47
46
use core:: iter:: FusedIterator ;
48
47
#[ cfg( not( no_global_oom_handling) ) ]
49
48
use core:: iter:: from_fn;
@@ -2683,7 +2682,8 @@ impl<T: fmt::Display + ?Sized> ToString for T {
2683
2682
#[ inline]
2684
2683
default fn to_string ( & self ) -> String {
2685
2684
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 ( ) ) ;
2687
2687
// Bypass format_args!() to avoid write_str with zero-length strs
2688
2688
fmt:: Display :: fmt ( self , & mut formatter)
2689
2689
. expect ( "a Display implementation returned an error unexpectedly" ) ;
You can’t perform that action at this time.
0 commit comments