diff options
| author | Stepan Koltsov <stepan.koltsov@gmail.com> | 2013-08-09 02:19:50 +0400 |
|---|---|---|
| committer | Stepan Koltsov <stepan.koltsov@gmail.com> | 2013-08-09 02:19:50 +0400 |
| commit | b9945f83c90ad1e28686de483be03cbfc34080be (patch) | |
| tree | 23e7fc72a44e1d7073fbde75470916476a8967fa /src/libstd | |
| parent | a0080f4e07891c89aa1f9851f8b0a3c754734fe8 (diff) | |
| download | rust-b9945f83c90ad1e28686de483be03cbfc34080be.tar.gz rust-b9945f83c90ad1e28686de483be03cbfc34080be.zip | |
Add #[inline] to impl Zero for ()
Follow-up to #8155
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/nil.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/nil.rs b/src/libstd/nil.rs index 81b7662e581..360db9608b6 100644 --- a/src/libstd/nil.rs +++ b/src/libstd/nil.rs @@ -55,7 +55,9 @@ impl TotalEq for () { #[cfg(not(test))] impl Zero for () { + #[inline] fn zero() -> () { () } + #[inline] fn is_zero(&self) -> bool { true } } |
