Empty becomes (), reflecting convention (#637)

This commit is contained in:
Gav Wood authored and GitHub committed 2018-08-31 14:32:51 +02:00
1 parent e1d64b1fc7
commit cd68c9b001
1 file changed
+1 -2
@@ -104,8 +104,7 @@ pub struct Identity;
impl<T> Convert<T, T> for Identity {
fn convert(a: T) -> T { a }
}
pub struct Empty;
impl<T> Convert<T, ()> for Empty {
impl<T> Convert<T, ()> for () {
fn convert(_: T) -> () { () }
}