Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit d5a4379

Browse files
authored
Empty becomes (), reflecting convention (#637)
1 parent c14b23a commit d5a4379

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

substrate/runtime/primitives/src/traits.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ pub struct Identity;
104104
impl<T> Convert<T, T> for Identity {
105105
fn convert(a: T) -> T { a }
106106
}
107-
pub struct Empty;
108-
impl<T> Convert<T, ()> for Empty {
107+
impl<T> Convert<T, ()> for () {
109108
fn convert(_: T) -> () { () }
110109
}
111110

0 commit comments

Comments
 (0)