1
Fork 0

reduce references on match patterns (clippy::match_ref_pats)

This commit is contained in:
Matthias Krüger 2020-03-07 10:57:02 +01:00
parent 3f87f8cfee
commit 8351138370
3 changed files with 9 additions and 9 deletions

View file

@ -47,7 +47,7 @@ impl CommandEnv {
}
}
for (key, maybe_val) in self.vars.iter() {
if let &Some(ref val) = maybe_val {
if let Some(ref val) = maybe_val {
env::set_var(key, val);
} else {
env::remove_var(key);