Skip to content

Commit

Permalink
Use namespaced enums
Browse files Browse the repository at this point in the history
rust-lang/rust#18973 changed the behavior of enums. Enums are now
namespaced.
  • Loading branch information
barosl committed Nov 18, 2014
1 parent 690c634 commit 5ab1062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extern crate syntax;
extern crate url;

use phf_mac::util as phf;
use phf_mac::util::{Entry, KeyStr};
use phf_mac::util::{Entry, Key};
use rustc::plugin::Registry;
use syntax::{ast, codemap, parse};
use syntax::ast::{CookedStr, LitStr};
Expand Down Expand Up @@ -84,7 +84,7 @@ fn expand(cx: &mut ExtCtxt, sp: codemap::Span, tts: &[ast::TokenTree]) -> Box<Ma
fn generate_entry(cx: &ExtCtxt, sp: codemap::Span, ext: &str, type_: &str, subtype: &str) -> Entry {
// The key
let key = str_to_lit(cx, sp, ext);
let key_contents = KeyStr(token::intern_and_get_ident(ext));
let key_contents = Key::Str(token::intern_and_get_ident(ext));

// The raw media type
let raw_media_type = generate_media_type(cx, sp, type_, subtype);
Expand Down

0 comments on commit 5ab1062

Please sign in to comment.