Skip to content

Commit

Permalink
Fix Never to compile on 1.14 and 1.16
Browse files Browse the repository at this point in the history
Apparently 1.15 was the only window where this code would be accepted:
rust-lang/rust#40250.
  • Loading branch information
SSheldon committed Mar 7, 2017
1 parent 1e377bf commit e5513f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/encoding/never.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ impl Encoding for Never {
type UnionMembers = Never;

fn descriptor(&self) -> Descriptor<Never, Never, Never, Never> {
match self { }
match *self { }
}
}

impl Encodings for Never {
fn each<F: EncodingsIterateCallback>(&self, _: &mut F) {
match self { }
match *self { }
}

fn eq_encodings<E: ?Sized + Encodings>(&self, _: &E) -> bool {
match self { }
match *self { }
}
}

impl fmt::Display for Never {
fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
match self { }
match *self { }
}
}

0 comments on commit e5513f9

Please sign in to comment.