Skip to content

Commit b44e43c

Browse files
committed
Streamline the format macro.
Removing the unnecessary local variable speeds up compilation a little.
1 parent b8c54d6 commit b44e43c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/alloc/src/macros.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ macro_rules! vec {
105105
macro_rules! format {
106106
($($arg:tt)*) => {
107107
$crate::__export::must_use({
108-
let res = $crate::fmt::format($crate::__export::format_args!($($arg)*));
109-
res
108+
$crate::fmt::format($crate::__export::format_args!($($arg)*))
110109
})
111110
}
112111
}

0 commit comments

Comments
 (0)