Skip to content

Commit

Permalink
gpt_disk_io: Fix a warning in a test
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
nicholasbishop committed Sep 9, 2024
1 parent b2a2fa6 commit 165a377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpt_disk_io/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ where

// Debug/Display
assert!(!format!("{a:?}").is_empty());
format!("{a}");
let _ = format!("{a}");

// Hash
let mut hasher = DefaultHasher::new();
Expand Down

0 comments on commit 165a377

Please sign in to comment.