Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
cycle-five committed Jul 12, 2024
1 parent 4b51253 commit a643358
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crack-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ impl EventLogAsync {
event: obj,
};
let mut buf = serde_json::to_vec(&entry).unwrap();
let _ = buf.write(&[b'\n']);
let _ = buf.write(b"\n");

Check warning on line 487 in crack-core/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

crack-core/src/lib.rs#L487

Added line #L487 was not covered by tests
let buf: &[u8] = buf.as_slice();
self.lock()
.await
Expand All @@ -495,7 +495,7 @@ impl EventLogAsync {
/// Write an object to the log file.
pub async fn write_obj<T: serde::Serialize>(&self, obj: &T) -> Result<(), Error> {
let mut buf = serde_json::to_vec(obj).unwrap();
let _ = buf.write(&[b'\n']);
let _ = buf.write(b"\n");

Check warning on line 498 in crack-core/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

crack-core/src/lib.rs#L498

Added line #L498 was not covered by tests
let buf: &[u8] = buf.as_slice();
self.lock()
.await
Expand Down

0 comments on commit a643358

Please sign in to comment.