Skip to content

Commit d327554

Browse files
committed
Forward to Process::var_os() directly
1 parent fcb31a1 commit d327554

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/currentprocess.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,7 @@ impl home::env::Env for Process {
145145
}
146146

147147
fn var_os(&self, key: &str) -> Option<OsString> {
148-
match self {
149-
Process::OSProcess(_) => self.var_os(key),
150-
#[cfg(feature = "test")]
151-
Process::TestProcess(_) => self.var_os(key),
152-
}
148+
self.var_os(key)
153149
}
154150
}
155151

0 commit comments

Comments
 (0)