Skip to content

Commit 716ab6c

Browse files
committed
Fix some warnings.
1 parent 9df0332 commit 716ab6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ fn list_to_json(list: &Vec<(ComponentValue, SourceLocation)>) -> Vec<json::Json>
391391
impl ToJson for AtRule {
392392
fn to_json(&self) -> json::Json {
393393
match *self {
394-
AtRule{name: ref name, prelude: ref prelude, block: ref block, ..}
394+
AtRule{ ref name, ref prelude, ref block, ..}
395395
=> json::List(vec!(JString!("at-rule"), name.to_json(),
396396
prelude.to_json(), block.as_ref().map(list_to_json).to_json()))
397397
}
@@ -402,7 +402,7 @@ impl ToJson for AtRule {
402402
impl ToJson for QualifiedRule {
403403
fn to_json(&self) -> json::Json {
404404
match *self {
405-
QualifiedRule{prelude: ref prelude, block: ref block, ..}
405+
QualifiedRule{ ref prelude, ref block, ..}
406406
=> json::List(vec!(JString!("qualified rule"),
407407
prelude.to_json(), json::List(list_to_json(block))))
408408
}
@@ -413,7 +413,7 @@ impl ToJson for QualifiedRule {
413413
impl ToJson for Declaration {
414414
fn to_json(&self) -> json::Json {
415415
match *self {
416-
Declaration{name: ref name, value: ref value, important: ref important, ..}
416+
Declaration{ ref name, ref value, ref important, ..}
417417
=> json::List(vec!(JString!("declaration"), name.to_json(),
418418
value.to_json(), important.to_json()))
419419
}

0 commit comments

Comments
 (0)