Skip to content

Commit

Permalink
Fix clippies
Browse files Browse the repository at this point in the history
  • Loading branch information
emabee committed Aug 21, 2024
1 parent d11184b commit 0570649
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/primary_writer/test_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl LogWriter for TestWriter {
{
let mut cursor = self.validation_buffer.lock().unwrap();
cursor.write_all(&buffer).ok();
cursor.write_all(&[b'\n']).ok();
cursor.write_all(b"\n").ok();
}

buffer.clear();
Expand All @@ -76,7 +76,7 @@ impl LogWriter for TestWriter {
{
let mut cursor = self.validation_buffer.lock().unwrap();
cursor.write_all(&tmp_buf).ok();
cursor.write_all(&[b'\n']).ok();
cursor.write_all(b"\n").ok();
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion tests/test_force_utc_1_panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ fn test_force_utc_1_panic() {
.unwrap_or_else(|e| panic!("Logger initialization failed with {e}"));
info!("MUST BE REACHED");
DeferredNow::force_utc();
assert!(false, "MUST NOT BE REACHED");
panic!("MUST NOT BE REACHED");
}
2 changes: 1 addition & 1 deletion tests/test_force_utc_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ fn test_force_utc_3() {
.unwrap_or_else(|e| panic!("Logger initialization failed with {e}"));
DeferredNow::force_utc();
info!("must be printed");
assert!(false, "we arrived here, everything OK");
panic!("we arrived here, everything OK");
}

0 comments on commit 0570649

Please sign in to comment.