diff options
| author | bors <bors@rust-lang.org> | 2021-02-02 14:52:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-02-02 14:52:53 +0000 |
| commit | b81f5811f96fe750ab28c15219d1b0dba6b1dc90 (patch) | |
| tree | de4308cb542bc90db1f8bfb1bdc1d28b6478b4ab /library/core/src/default.rs | |
| parent | a3ed564c130ec3f19e933a9ea31faca5a717ce91 (diff) | |
| parent | d5b760ba62b40dd770c09e704b8a3af64c1fd058 (diff) | |
| download | rust-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.rs | 6 |
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 `()`" } |
