From 1efc88f10a182d263baa4f267be756b1fb01492a Mon Sep 17 00:00:00 2001 From: mcarton Date: Sat, 13 Feb 2016 13:17:48 +0100 Subject: [PATCH] Rustup to 1.8.0-nightly (ce4b75f25 2016-02-12) --- src/enum_variants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enum_variants.rs b/src/enum_variants.rs index c77e42e69c9..1dab2c40891 100644 --- a/src/enum_variants.rs +++ b/src/enum_variants.rs @@ -45,7 +45,7 @@ fn check_item(&mut self, cx: &EarlyContext, item: &Item) { if def.variants.len() < 2 { return; } - let first = var2str(&*def.variants[0]); + let first = var2str(&def.variants[0]); let mut pre = first.to_string(); let mut post = pre.clone(); for var in &def.variants[1..] {