diff --git a/foyer-experimental/src/wal.rs b/foyer-experimental/src/wal.rs index c5df56d6..7d2673f5 100644 --- a/foyer-experimental/src/wal.rs +++ b/foyer-experimental/src/wal.rs @@ -143,12 +143,9 @@ impl TombstoneLog { path.push(format!("tombstone-{:08X}", config.id)); - let file = OpenOptions::new() - .write(true) - .read(true) - .create(true) - .truncate(true) - .open(path)?; + // TODO(MrCroxx): use `expect` after `lint_reasons` is stable. + #[allow(clippy::suspicious_open_options)] + let file = OpenOptions::new().write(true).read(true).create(true).open(path)?; let inner = Arc::new(TombstoneLogInner { inflights: Mutex::new(vec![]),