Open
Description
Hello there, here is just a personal suggestion to keep the consistency between declaring a empty struct / marker trait, nothings really important but anyway ^^
struct Empty; // ok
struct Empty {} // ok
trait SignedInteger; // currently not ok
trait SignedInteger {} // ok
impl SignedInteger for i8; // currently not ok
impl SignedInteger for i8 {} // ok
Also, sometime implementing the same maker trait for multiples types can be helpful (instead of using macro) :
impl SignedInteger for i8, i16, i32, i64, isize; // currently not ok
impl SignedInteger for i8, i16, i32, i64, isize {} // currently not ok
Metadata
Metadata
Assignees
Labels
No labels