From 9304126be5633d4e7d384a8df87f5833a7a145e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E7=82=B3=E6=9D=83?= <695601626@qq.com> Date: Thu, 11 Apr 2024 06:08:23 +0800 Subject: chore: update to Rust 1.77.2 (#23262) update to Rust 1.77.2 --------- Co-authored-by: Matt Mastracci --- cli/util/fs.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cli/util') 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); +pub struct LaxSingleProcessFsFlag( + #[allow(dead_code)] Option, +); 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 { -- cgit v1.2.3