]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/macros.rs
clean up error codes explanation
[rust.git] / src / liballoc / macros.rs
index 2f2cdc39c633db3f763d302db11cfdb6c0602031..422d3486f92b29cc860cc33f4868590c7562f5e7 100644 (file)
@@ -98,5 +98,8 @@ macro_rules! vec {
 #[macro_export]
 #[stable(feature = "rust1", since = "1.0.0")]
 macro_rules! format {
-    ($($arg:tt)*) => ($crate::fmt::format($crate::__export::format_args!($($arg)*)))
+    ($($arg:tt)*) => {{
+        let res = $crate::fmt::format($crate::__export::format_args!($($arg)*));
+        res
+    }}
 }