diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2024-07-22 22:06:16 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2024-07-28 14:46:29 -0400 |
| commit | 5eca36d27a5599f1e15885cd36d6559d36048cd3 (patch) | |
| tree | 2af1e3f3bad75e3335ea0642755f2849e9686b9e /src/bootstrap | |
| parent | fceb0863d8e5b01fe9c315e5b52e2c7a862dd85e (diff) | |
step cfg(bootstrap)
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/bin/main.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bootstrap/src/bin/main.rs b/src/bootstrap/src/bin/main.rs index a7d21ba6ae1..9fdbc4b899e 100644 --- a/src/bootstrap/src/bin/main.rs +++ b/src/bootstrap/src/bin/main.rs @@ -30,10 +30,7 @@ fn main() { // Display PID of process holding the lock // PID will be stored in a lock file let lock_path = config.out.join("lock"); - let pid = match fs::read_to_string(&lock_path) { - Ok(contents) => contents, - Err(_) => String::new(), - }; + let pid = fs::read_to_string(&lock_path).unwrap_or_default(); build_lock = fd_lock::RwLock::new(t!(fs::OpenOptions::new() .write(true) |
