From 436abb5a4e9513ede5e20cf940a9a4f83ada7f6f Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Fri, 17 Mar 2017 17:06:35 +0000 Subject: [PATCH] Remove reference in favour for dereferencing variable --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 625b693..e336d63 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -685,7 +685,7 @@ impl Config { for &(ref key, ref value) in self.definitions.iter() { let lead = if let ToolFamily::Msvc = cmd.family {"/"} else {"-"}; - if let &Some(ref value) = value { + if let Some(ref value) = *value { cmd.args.push(format!("{}D{}={}", lead, key, value).into()); } else { cmd.args.push(format!("{}D{}", lead, key).into()); @@ -706,7 +706,7 @@ impl Config { cmd.arg("/I").arg(directory); } for &(ref key, ref value) in self.definitions.iter() { - if let &Some(ref value) = value { + if let Some(ref value) = *value { cmd.arg(&format!("/D{}={}", key, value)); } else { cmd.arg(&format!("/D{}", key));