Skip to content

Commit 1a915f2

Browse files
fid: Fixes clippy (#3072)
Co-authored-by: Kenneth S. <[email protected]>
1 parent ff74ea1 commit 1a915f2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/chat-cli/src/cli/chat/cli/logdump.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,24 @@ impl LogdumpArgs {
7474
let mut log_count = 0;
7575

7676
// Only collect qchat.log (keeping current implementation logic)
77-
log_count += self.collect_qchat_log(&mut zip, &logs_dir)?;
77+
log_count += Self::collect_qchat_log(&mut zip, &logs_dir)?;
7878

7979
zip.finish()?;
8080
Ok(log_count)
8181
}
8282

8383
fn collect_qchat_log(
84-
&self,
8584
zip: &mut ZipWriter<std::fs::File>,
8685
logs_dir: &Path,
8786
) -> Result<usize, Box<dyn std::error::Error>> {
8887
let qchat_log_path = logs_dir.join("qchat.log");
8988
if qchat_log_path.exists() {
90-
return self.add_log_file_to_zip(&qchat_log_path, zip, "logs");
89+
return Self::add_log_file_to_zip(&qchat_log_path, zip, "logs");
9190
}
9291
Ok(0)
9392
}
9493

9594
fn add_log_file_to_zip(
96-
&self,
9795
path: &Path,
9896
zip: &mut ZipWriter<std::fs::File>,
9997
prefix: &str,

0 commit comments

Comments
 (0)