reduce references on match patterns (clippy::match_ref_pats)
This commit is contained in:
parent
3f87f8cfee
commit
8351138370
3 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue