diff options
Diffstat (limited to 'components/devtools_traits/lib.rs')
-rw-r--r-- | components/devtools_traits/lib.rs | 4 |
1 files 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: Decoder>(d: &mut D) -> Result<Modification, D::Error> { 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 } |