File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -606,13 +606,12 @@ use crate::string;
606
606
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
607
607
#[ inline]
608
608
pub fn format ( args : Arguments < ' _ > ) -> string:: String {
609
- #[ cold]
610
- fn format_cold ( args : Arguments < ' _ > ) -> string:: String {
609
+ fn format_inner ( args : Arguments < ' _ > ) -> string:: String {
611
610
let capacity = args. estimated_capacity ( ) ;
612
611
let mut output = string:: String :: with_capacity ( capacity) ;
613
612
output. write_fmt ( args) . expect ( "a formatting trait implementation returned an error" ) ;
614
613
output
615
614
}
616
615
617
- args. as_str ( ) . map_or_else ( || format_cold ( args) , crate :: borrow:: ToOwned :: to_owned)
616
+ args. as_str ( ) . map_or_else ( || format_inner ( args) , crate :: borrow:: ToOwned :: to_owned)
618
617
}
You can’t perform that action at this time.
0 commit comments