mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-01 00:49:30 +00:00
Rustup to 1.8.0-nightly (ce4b75f25 2016-02-12)
This commit is contained in:
parent
17b7b413f7
commit
1efc88f10a
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ impl EarlyLintPass for EnumVariantNames {
|
||||||
if def.variants.len() < 2 {
|
if def.variants.len() < 2 {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let first = var2str(&*def.variants[0]);
|
let first = var2str(&def.variants[0]);
|
||||||
let mut pre = first.to_string();
|
let mut pre = first.to_string();
|
||||||
let mut post = pre.clone();
|
let mut post = pre.clone();
|
||||||
for var in &def.variants[1..] {
|
for var in &def.variants[1..] {
|
||||||
|
|
Loading…
Reference in a new issue