@@ -391,7 +391,7 @@ fn list_to_json(list: &Vec<(ComponentValue, SourceLocation)>) -> Vec<json::Json>
391
391
impl ToJson for AtRule {
392
392
fn to_json ( & self ) -> json:: Json {
393
393
match * self {
394
- AtRule { name : ref name, prelude : ref prelude, block : ref block, ..}
394
+ AtRule { ref name, ref prelude, ref block, ..}
395
395
=> json:: List ( vec ! ( JString !( "at-rule" ) , name. to_json( ) ,
396
396
prelude. to_json( ) , block. as_ref( ) . map( list_to_json) . to_json( ) ) )
397
397
}
@@ -402,7 +402,7 @@ impl ToJson for AtRule {
402
402
impl ToJson for QualifiedRule {
403
403
fn to_json ( & self ) -> json:: Json {
404
404
match * self {
405
- QualifiedRule { prelude : ref prelude, block : ref block, ..}
405
+ QualifiedRule { ref prelude, ref block, ..}
406
406
=> json:: List ( vec ! ( JString !( "qualified rule" ) ,
407
407
prelude. to_json( ) , json:: List ( list_to_json( block) ) ) )
408
408
}
@@ -413,7 +413,7 @@ impl ToJson for QualifiedRule {
413
413
impl ToJson for Declaration {
414
414
fn to_json ( & self ) -> json:: Json {
415
415
match * self {
416
- Declaration { name : ref name, value : ref value, important : ref important, ..}
416
+ Declaration { ref name, ref value, ref important, ..}
417
417
=> json:: List ( vec ! ( JString !( "declaration" ) , name. to_json( ) ,
418
418
value. to_json( ) , important. to_json( ) ) )
419
419
}
0 commit comments