Skip to content

Commit 89bc2d6

Browse files
committed
Auto merge of rust-lang#140188 - nnethercote:streamline-format-macro, r=cuviper
Streamline the `format` macro. Removing the unnecessary local variable speeds up compilation a little. r? `@cuviper`
2 parents b8f55d5 + 8458ab1 commit 89bc2d6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)