Skip to content

Commit 165a377

Browse files
gpt_disk_io: Fix a warning in a test
This code is just making sure that `Display` can be called without panicking; there's no useful check we can run on the result of `format`.
1 parent b2a2fa6 commit 165a377

File tree

1 file changed

+1
-1
lines changed
  • gpt_disk_io/tests/common

1 file changed

+1
-1
lines changed

gpt_disk_io/tests/common/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ where
4242

4343
// Debug/Display
4444
assert!(!format!("{a:?}").is_empty());
45-
format!("{a}");
45+
let _ = format!("{a}");
4646

4747
// Hash
4848
let mut hasher = DefaultHasher::new();

0 commit comments

Comments
 (0)