From 9628ae775d3f521e4defd2a14c2da0b336d5f272 Mon Sep 17 00:00:00 2001 From: bluss Date: Mon, 7 Nov 2016 02:52:59 +0100 Subject: [PATCH] Fix patterns_in_fns_without_body warning This is a new future incompatibility warning, "patterns aren't allowed in methods without bodies". --- src/serialize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serialize.rs b/src/serialize.rs index d22b23b..67bb163 100644 --- a/src/serialize.rs +++ b/src/serialize.rs @@ -620,7 +620,7 @@ pub trait Decoder { /// and may (but are not required to) return an error if these are /// inconsistent. fn read_enum_struct_variant_field(&mut self, - &f_name: &str, + f_name: &str, f_idx: usize, f: F) -> Result