Skip to content

Commit

Permalink
chore: drop file path clone when writing to file writer
Browse files Browse the repository at this point in the history
  • Loading branch information
enigbe committed Dec 20, 2024
1 parent b927b31 commit 2a80510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl LogWriter for Writer {
fs::OpenOptions::new()
.create(true)
.append(true)
.open(file_path.clone())
.open(file_path)
.expect("Failed to open log file")
.write_all(log.as_bytes())
.expect("Failed to write to log file")
Expand Down

0 comments on commit 2a80510

Please sign in to comment.