auto merge of #8404 : stepancheg/rust/zero-unit-inline, r=alexcrichton
Follow-up to #8155
This commit is contained in:
commit
eebcff1493
1 changed files with 2 additions and 0 deletions
|
@ -49,7 +49,9 @@ impl TotalEq for () {
|
|||
|
||||
#[cfg(not(test))]
|
||||
impl Zero for () {
|
||||
#[inline]
|
||||
fn zero() -> () { () }
|
||||
#[inline]
|
||||
fn is_zero(&self) -> bool { true }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue