diff --git a/src/primary_writer/test_writer.rs b/src/primary_writer/test_writer.rs index 128fa46..c6da1f7 100644 --- a/src/primary_writer/test_writer.rs +++ b/src/primary_writer/test_writer.rs @@ -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(); @@ -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(); } } }); diff --git a/tests/test_force_utc_1_panic.rs b/tests/test_force_utc_1_panic.rs index 6b65efe..370027c 100644 --- a/tests/test_force_utc_1_panic.rs +++ b/tests/test_force_utc_1_panic.rs @@ -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"); } diff --git a/tests/test_force_utc_3.rs b/tests/test_force_utc_3.rs index cde7d9f..3773069 100644 --- a/tests/test_force_utc_3.rs +++ b/tests/test_force_utc_3.rs @@ -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"); }