Skip to content
Snippets Groups Projects
Commit cd68c9b0 authored by Gav Wood's avatar Gav Wood Committed by GitHub
Browse files

Empty becomes (), reflecting convention (#637)

parent e1d64b1f
No related merge requests found
......@@ -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) -> () { () }
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment