diff options
author | 林炳权 <695601626@qq.com> | 2024-04-11 06:08:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 22:08:23 +0000 |
commit | 9304126be5633d4e7d384a8df87f5833a7a145e2 (patch) | |
tree | c074d89e9f2423c5121721ea94b9b4fb3101a482 /cli/util/fs.rs | |
parent | c6f1107e9c8835389479f4f2d80d3539d23df41e (diff) |
chore: update to Rust 1.77.2 (#23262)
update to Rust 1.77.2
---------
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'cli/util/fs.rs')
-rw-r--r-- | cli/util/fs.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/util/fs.rs b/cli/util/fs.rs index ba55eb89d..92820ebe8 100644 --- a/cli/util/fs.rs +++ b/cli/util/fs.rs @@ -676,7 +676,9 @@ impl Drop for LaxSingleProcessFsFlagInner { /// This should only be used in places where it's ideal for multiple /// processes to not update something on the file system at the same time, /// but it's not that big of a deal. -pub struct LaxSingleProcessFsFlag(Option<LaxSingleProcessFsFlagInner>); +pub struct LaxSingleProcessFsFlag( + #[allow(dead_code)] Option<LaxSingleProcessFsFlagInner>, +); impl LaxSingleProcessFsFlag { pub async fn lock(file_path: PathBuf, long_wait_message: &str) -> Self { @@ -688,6 +690,7 @@ impl LaxSingleProcessFsFlag { .read(true) .write(true) .create(true) + .truncate(false) .open(&file_path); match open_result { |