Skip to content

Commit bffe086

Browse files
committed
Remove the Zero trait
Unused.
1 parent 9364cee commit bffe086

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/utils.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,3 @@ macro_rules! one {
2020
}
2121

2222
one! { i8 i16 i32 i64 isize u8 u16 u32 u64 usize }
23-
24-
#[doc(hidden)]
25-
pub trait Zero {
26-
fn zero() -> Self;
27-
}
28-
29-
macro_rules! zero {
30-
($($t:ident)*) => ($(
31-
impl Zero for $t { fn zero() -> $t { 0 } }
32-
)*)
33-
}
34-
35-
zero! { i8 i16 i32 i64 isize u8 u16 u32 u64 usize }

0 commit comments

Comments
 (0)