diff options
| author | Yuri Astrakhan <yuriastrakhan@gmail.com> | 2024-10-02 14:25:14 -0400 |
|---|---|---|
| committer | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-10-08 23:26:30 -0400 |
| commit | d2f93c97079a5c7e2b3fff6d3a63f862ce88bb3f (patch) | |
| tree | 0bad722e5149a9ed9376122e9d1a0c037aabc09a /library/std/src/sys | |
| parent | f2d1edfea5689ac638904080ddb972c40e7acc8c (diff) | |
| download | rust-d2f93c97079a5c7e2b3fff6d3a63f862ce88bb3f.tar.gz rust-d2f93c97079a5c7e2b3fff6d3a63f862ce88bb3f.zip | |
Update library/std/src/sys/pal/unix/process/process_unix.rs
Co-authored-by: Josh Stone <cuviper@gmail.com>
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/pal/unix/process/process_unix.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/process/process_unix.rs b/library/std/src/sys/pal/unix/process/process_unix.rs index 0fa6551772f..4551d49e841 100644 --- a/library/std/src/sys/pal/unix/process/process_unix.rs +++ b/library/std/src/sys/pal/unix/process/process_unix.rs @@ -335,7 +335,7 @@ impl Command { cvt(libc::setuid(u as uid_t))?; } } - if let Some(ref cwd) = self.get_cwd() { + if let Some(cwd) = self.get_cwd() { cvt(libc::chdir(cwd.as_ptr()))?; } |
