Private
Public Access
1
0

fix: add truncate(true) to lock file OpenOptions for clippy compliance

Resolves clippy::suspicious_open_options warning on whitelist lock file creation.
This commit is contained in:
2026-05-17 15:21:52 +00:00
parent 5c670cbd0c
commit a08145ed9e

View File

@ -138,6 +138,7 @@ impl WhitelistManager {
let lock_path = format!("{}.lock", self.config_path);
let lock_file = OpenOptions::new()
.create(true)
.truncate(true)
.write(true)
.open(&lock_path)
.with_context(|| format!("Failed to create lock file: {}", lock_path))?;