Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Zhang <[email protected]>
  • Loading branch information
v01dstar committed Nov 8, 2023
1 parent 8cc474d commit 1fd5416
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/file_pipe_log/log_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ impl<F: FileSystem> LogFileWriter<F> {

pub fn truncate(&mut self) {
if self.written < self.capacity {
fail_point!("file_pipe_log::log_file_writer::skip_truncate", |_| {
Ok(())
});
fail_point!("file_pipe_log::log_file_writer::skip_truncate", |_| {});
// Panic if truncate fails, in case of data loss.
self.writer.truncate(self.written).unwrap();
self.capacity = self.written;
Expand Down

0 comments on commit 1fd5416

Please sign in to comment.