Skip to content

Commit d9406b6

Browse files
committed
Make non_fmt_panics clippy happy
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 58d45a2 commit d9406b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diskio/test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn test_incremental_file(io_threads: &str) -> Result<()> {
5050
for work in io_executor.completed().collect::<Vec<_>>() {
5151
match work {
5252
super::CompletedIo::Chunk(size) => written += size,
53-
super::CompletedIo::Item(item) => unreachable!(format!("{:?}", item)),
53+
super::CompletedIo::Item(item) => unreachable!("{:?}", item),
5454
}
5555
}
5656
if written == 20 {
@@ -117,7 +117,7 @@ fn test_complete_file(io_threads: &str) -> Result<()> {
117117
for work in io_executor.execute(item).collect::<Vec<_>>() {
118118
// The file might complete immediately
119119
match work {
120-
super::CompletedIo::Chunk(size) => unreachable!(format!("{:?}", size)),
120+
super::CompletedIo::Chunk(size) => unreachable!("{:?}", size),
121121
super::CompletedIo::Item(item) => {
122122
check_item(item);
123123
finished = true;
@@ -128,7 +128,7 @@ fn test_complete_file(io_threads: &str) -> Result<()> {
128128
loop {
129129
for work in io_executor.completed().collect::<Vec<_>>() {
130130
match work {
131-
super::CompletedIo::Chunk(size) => unreachable!(format!("{:?}", size)),
131+
super::CompletedIo::Chunk(size) => unreachable!("{:?}", size),
132132
super::CompletedIo::Item(item) => {
133133
check_item(item);
134134
finished = true;

0 commit comments

Comments
 (0)