Skip to content

Commit

Permalink
Fix Clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
agerasev committed Aug 2, 2023
1 parent 965af9b commit 6143e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/fmt_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ fn write_overflow() {

assert_eq!(
write!(prod, "This is a very long string that will overflow the small buffer\n"),
Err(core::fmt::Error::default())
Err(core::fmt::Error)
);

assert_eq!(cons.occupied_len(), 10);
assert!(cons.pop_iter().eq(b"This is a ".iter().copied()));

assert_eq!(
write!(prod, "{} {} {} {} {}\n", "This", "string", "will", "also", "overflow"),
Err(core::fmt::Error::default())
Err(core::fmt::Error)
);

assert_eq!(cons.occupied_len(), 10);
Expand Down

0 comments on commit 6143e3e

Please sign in to comment.