diff options
| author | Jed Davis <jld@panix.com> | 2013-09-25 09:41:10 -0700 |
|---|---|---|
| committer | Jed Davis <jld@panix.com> | 2013-10-29 09:09:20 -0700 |
| commit | 727731f89ed5c341237705026f50f5f6a566336d (patch) | |
| tree | 8d1fea9979b900d4559ad4479248ab77d6bcf6c4 /src/libsyntax | |
| parent | 01097cbab00f64b922bcf5b91fb26a68f6d0d9cf (diff) | |
| download | rust-727731f89ed5c341237705026f50f5f6a566336d.tar.gz rust-727731f89ed5c341237705026f50f5f6a566336d.zip | |
Assorted cleanups suggested by reviewers.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index 222ca61a791..7a5a326add4 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -385,8 +385,7 @@ pub fn find_repr_attr(diagnostic: @mut span_handler, attr: @ast::MetaItem, acc: for item in items.iter() { match item.node { ast::MetaWord(word) => { - let word: &str = word; - let hint = match word { + let hint = match word.as_slice() { // Can't use "extern" because it's not a lexical identifier. "C" => ReprExtern, _ => match int_type_of_word(word) { |
