From f749881eeac94cccd2c45e65caa5dd2f01ed0ace Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Sat, 15 Aug 2015 04:58:30 +0530 Subject: [PATCH] Eta-reduce some functions in devtools --- components/devtools_traits/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/devtools_traits/lib.rs b/components/devtools_traits/lib.rs index fa562744a33..b7ef2ebf5c4 100644 --- a/components/devtools_traits/lib.rs +++ b/components/devtools_traits/lib.rs @@ -192,8 +192,8 @@ impl Decodable for Modification { fn decode(d: &mut D) -> Result { d.read_struct("Modification", 2, |d| Ok(Modification { - attributeName: try!(d.read_struct_field("attributeName", 0, |d| Decodable::decode(d))), - newValue: match d.read_struct_field("newValue", 1, |d| Decodable::decode(d)) { + attributeName: try!(d.read_struct_field("attributeName", 0, Decodable::decode)), + newValue: match d.read_struct_field("newValue", 1, Decodable::decode) { Ok(opt) => opt, Err(_) => None }