From 08f5df1f0a2e22876a5b49a4f9e2e05a61df882a Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 21:56:20 +0100 Subject: make clippy happy again --- src/units.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/units.rs') diff --git a/src/units.rs b/src/units.rs index cec5ffc..ac08ebf 100644 --- a/src/units.rs +++ b/src/units.rs @@ -134,7 +134,7 @@ pub(crate) fn parse_size(text: &str) -> Result { pub(crate) fn format_size(bytes: u64) -> String { SIZE_UNITS .iter() - .find(|(_, scale)| bytes != 0 && bytes % scale == 0) + .find(|(_, scale)| bytes != 0 && bytes.is_multiple_of(*scale)) .map(|(name, scale)| format!("{}{name}", bytes / scale)) .unwrap_or_else(|| "0B".to_owned()) } -- cgit v1.3.1