about summary refs log tree commit diff
path: root/library/core/src/default.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-02-02 14:52:53 +0000
committerbors <bors@rust-lang.org>2021-02-02 14:52:53 +0000
commitb81f5811f96fe750ab28c15219d1b0dba6b1dc90 (patch)
treede4308cb542bc90db1f8bfb1bdc1d28b6478b4ab /library/core/src/default.rs
parenta3ed564c130ec3f19e933a9ea31faca5a717ce91 (diff)
parentd5b760ba62b40dd770c09e704b8a3af64c1fd058 (diff)
downloadrust-b81f5811f96fe750ab28c15219d1b0dba6b1dc90.tar.gz
rust-b81f5811f96fe750ab28c15219d1b0dba6b1dc90.zip
Auto merge of #80843 - Mark-Simulacrum:fmt-bump, r=petrochenkov
Bump rustfmt version
Diffstat (limited to 'library/core/src/default.rs')
-rw-r--r--library/core/src/default.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/core/src/default.rs b/library/core/src/default.rs
index 9a8d65cd4e0..28ec3279459 100644
--- a/library/core/src/default.rs
+++ b/library/core/src/default.rs
@@ -173,9 +173,11 @@ macro_rules! default_impl {
         impl Default for $t {
             #[inline]
             #[doc = $doc]
-            fn default() -> $t { $v }
+            fn default() -> $t {
+                $v
+            }
         }
-    }
+    };
 }
 
 default_impl! { (), (), "Returns the default value of `()`" }