Skip to content

Commit

Permalink
Update for recent changes in libsyntax
Browse files Browse the repository at this point in the history
  • Loading branch information
zsiciarz committed Jul 29, 2015
1 parent b2b2033 commit 4c1208a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fn parse_json(cx: &ExtCtxt, parser: &mut Parser) -> P<Expr> {
($expr).to_json()
}})
},
&Token::Ident(id, IdentStyle::Plain) if id.as_str() == "null" => {
&Token::Ident(id, IdentStyle::Plain) if id.name.as_str() == "null" => {
let _ = parser.bump();
quote_expr!(cx, { ::rustc_serialize::json::Json::Null })
},
Expand Down

0 comments on commit 4c1208a

Please sign in to comment.