From 1fd5416a71c2adb47186d05c11f511daa8587fb9 Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Wed, 8 Nov 2023 12:56:24 -0800 Subject: [PATCH] Fix clippy Signed-off-by: Yang Zhang --- src/file_pipe_log/log_file.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/file_pipe_log/log_file.rs b/src/file_pipe_log/log_file.rs index 135eced9..092835f6 100644 --- a/src/file_pipe_log/log_file.rs +++ b/src/file_pipe_log/log_file.rs @@ -82,9 +82,7 @@ impl LogFileWriter { 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;