Skip to content

Commit

Permalink
Simplify PATH key comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
bdrewery committed Mar 19, 2018
1 parent 6212904 commit 8e0faf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/sys_common/process.rs
Expand Up @@ -129,7 +129,7 @@ impl<K: EnvKey> CommandEnv<K> {
self.saw_path || self.clear
}
fn maybe_saw_path(&mut self, key: &OsStr) {
if !self.saw_path && key.to_os_string() == OsString::from("PATH") {
if !self.saw_path && key == "PATH" {
self.saw_path = true;
}
}
Expand Down

0 comments on commit 8e0faf7

Please sign in to comment.