From e5513f9fd7fe7c0b4abe9cc715c1788ea1d75de6 Mon Sep 17 00:00:00 2001 From: Steven Sheldon Date: Mon, 6 Mar 2017 23:18:55 -0800 Subject: [PATCH] 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. --- src/encoding/never.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/encoding/never.rs b/src/encoding/never.rs index 85cb906..344d180 100644 --- a/src/encoding/never.rs +++ b/src/encoding/never.rs @@ -13,22 +13,22 @@ impl Encoding for Never { type UnionMembers = Never; fn descriptor(&self) -> Descriptor { - match self { } + match *self { } } } impl Encodings for Never { fn each(&self, _: &mut F) { - match self { } + match *self { } } fn eq_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 { } } }