Skip to content

Commit b9945f8

Browse files
committed
Add #[inline] to impl Zero for ()
Follow-up to #8155
1 parent a0080f4 commit b9945f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/nil.rs

+2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ impl TotalEq for () {
5555

5656
#[cfg(not(test))]
5757
impl Zero for () {
58+
#[inline]
5859
fn zero() -> () { () }
60+
#[inline]
5961
fn is_zero(&self) -> bool { true }
6062
}
6163

0 commit comments

Comments
 (0)