Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jul 10, 2014
1 parent 6bfb12b commit f3f193c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phf_mac/src/lib.rs
Expand Up @@ -229,13 +229,13 @@ fn parse_key(cx: &mut ExtCtxt, e: &Expr) -> Option<Key> {
LitStr(ref s, _) => Some(KeyStr(s.clone())),
LitBinary(ref b) => Some(KeyBinary(b.clone())),
_ => {
cx.span_err(e.span, "expected string literal");
cx.span_err(e.span, "unsupported literal type");
None
}
}
}
_ => {
cx.span_err(e.span, "expected string literal");
cx.span_err(e.span, "expected a literal");
None
}
}
Expand Down

0 comments on commit f3f193c

Please sign in to comment.