Skip to content

Commit

Permalink
Update for API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jul 18, 2014
1 parent 60f391c commit 5c59a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phf_mac/src/lib.rs
Expand Up @@ -166,7 +166,7 @@ fn parse_map(cx: &mut ExtCtxt, tts: &[TokenTree]) -> Option<Vec<Entry>> {
let mut bad = false;
while parser.token != EOF {
let key = cx.expand_expr(parser.parse_expr());
let key_contents = parse_key(cx, key).unwrap_or_else(|| {
let key_contents = parse_key(cx, &*key).unwrap_or_else(|| {
bad = true;
KeyStr(InternedString::new(""))
});
Expand Down Expand Up @@ -213,7 +213,7 @@ fn parse_set(cx: &mut ExtCtxt, tts: &[TokenTree]) -> Option<Vec<Entry>> {
let mut bad = false;
while parser.token != EOF {
let key = cx.expand_expr(parser.parse_expr());
let key_contents = parse_key(cx, key).unwrap_or_else(|| {
let key_contents = parse_key(cx, &*key).unwrap_or_else(|| {
bad = true;
KeyStr(InternedString::new(""))
});
Expand Down

0 comments on commit 5c59a7a

Please sign in to comment.