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;
606606#[ stable( feature = "rust1" , since = "1.0.0" ) ]
607607#[ inline]
608608pub fn format ( args : Arguments < ' _ > ) -> string:: String {
609- #[ cold]
610- fn format_cold ( args : Arguments < ' _ > ) -> string:: String {
609+ fn format_inner ( args : Arguments < ' _ > ) -> string:: String {
611610 let capacity = args. estimated_capacity ( ) ;
612611 let mut output = string:: String :: with_capacity ( capacity) ;
613612 output. write_fmt ( args) . expect ( "a formatting trait implementation returned an error" ) ;
614613 output
615614 }
616615
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)
618617}
You can’t perform that action at this time.
0 commit comments