Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bsbds committed Mar 22, 2024
1 parent 359c2aa commit 3854ff5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/curp/src/server/storage/wal/remover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ impl SegmentRemover {
/// | SegmentID |
/// |------+------+------+------+------+------+------+------|
#[allow(clippy::arithmetic_side_effects)] // won't overflow
#[allow(clippy::verbose_file_reads)] // needs to create `LockedFile` first, can't direct read from a dir
pub(super) fn recover(dir: impl AsRef<Path>) -> io::Result<()> {
let wal_path = Self::rwal_path(&dir);
if !is_exist(&wal_path) {
Expand Down

0 comments on commit 3854ff5

Please sign in to comment.