Skip to content

Commit 70559c5

Browse files
committed
Command::env_saw_path() may be unused on platforms not using posix_spawn()
1 parent 8e0faf7 commit 70559c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/sys/unix/process/process_common.rs

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ impl Command {
184184
let maybe_env = self.env.capture_if_changed();
185185
maybe_env.map(|env| construct_envp(env, &mut self.saw_nul))
186186
}
187+
#[allow(dead_code)]
187188
pub fn env_saw_path(&self) -> bool {
188189
self.env.have_changed_path()
189190
}

0 commit comments

Comments
 (0)