Skip to content

Commit e5513f9

Browse files
committed
Fix Never to compile on 1.14 and 1.16
Apparently 1.15 was the only window where this code would be accepted: rust-lang/rust#40250.
1 parent 1e377bf commit e5513f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/encoding/never.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ impl Encoding for Never {
1313
type UnionMembers = Never;
1414

1515
fn descriptor(&self) -> Descriptor<Never, Never, Never, Never> {
16-
match self { }
16+
match *self { }
1717
}
1818
}
1919

2020
impl Encodings for Never {
2121
fn each<F: EncodingsIterateCallback>(&self, _: &mut F) {
22-
match self { }
22+
match *self { }
2323
}
2424

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

3030
impl fmt::Display for Never {
3131
fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
32-
match self { }
32+
match *self { }
3333
}
3434
}

0 commit comments

Comments
 (0)