Skip to content

Commit dd90361

Browse files
committed
Merge pull request #20 from zsiciarz/master
Update for recent changes in libsyntax
2 parents b2b2033 + 4c1208a commit dd90361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn parse_json(cx: &ExtCtxt, parser: &mut Parser) -> P<Expr> {
8282
($expr).to_json()
8383
}})
8484
},
85-
&Token::Ident(id, IdentStyle::Plain) if id.as_str() == "null" => {
85+
&Token::Ident(id, IdentStyle::Plain) if id.name.as_str() == "null" => {
8686
let _ = parser.bump();
8787
quote_expr!(cx, { ::rustc_serialize::json::Json::Null })
8888
},

0 commit comments

Comments
 (0)