From 72d51f480a09d49f5a67396b1f48df8ad15ccc06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Wed, 3 Apr 2024 15:13:15 +0200 Subject: [PATCH] Fix clippy --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 05afd47..dcef492 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,6 +89,7 @@ impl Context { .read(true) .write(true) .create(true) + .truncate(true) .open(self.work.join(".lock"))?; file.try_lock_exclusive()?; Ok(file)