mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
Eta-reduce some functions in devtools
This commit is contained in:
parent
adfe9d249e
commit
f749881eea
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue