Skip to content

Commit

Permalink
Fix my stupid mistake
Browse files Browse the repository at this point in the history
- I can't believe I did this. Frankly, terrible.
  • Loading branch information
cyqsimon committed Nov 1, 2023
1 parent 29aadc0 commit 4c3ff3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/display/components/display_bandwidth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ impl BandwidthUnitFamily {
.steps()
.into_iter()
.find(|&(_, bound, _)| bound >= bytes)
.expect("Cannot select an appropriate unit for {bytes:.2}B.");
.expect(&format!(
"Cannot select an appropriate unit for {bytes:.2}B."
));

(div, suffix)
}
Expand Down

0 comments on commit 4c3ff3e

Please sign in to comment.