Empty becomes (), reflecting convention (#637)

This commit is contained in:
Gav Wood
2018-08-31 14:32:51 +02:00
committed by GitHub
parent e1d64b1fc7
commit cd68c9b001
@@ -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) -> () { () }
}