From ba8746df927ff4d8c9b890fada727282a823497e Mon Sep 17 00:00:00 2001 From: Alan Hanson Date: Fri, 12 Jan 2024 08:50:52 -0800 Subject: [PATCH] Fix clippy lints in dsc (#1095) --- dsc/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsc/src/main.rs b/dsc/src/main.rs index 5a5a4e745..33ce6ad12 100644 --- a/dsc/src/main.rs +++ b/dsc/src/main.rs @@ -1190,7 +1190,7 @@ async fn loop_create_test( * Return a formatted string of the region size in SI units. */ fn region_si(es: u64, ec: u64, bs: u32) -> String { - let sz = Byte::from_u64((bs as u64 * es * ec).into()); + let sz = Byte::from_u64(bs as u64 * es * ec); format!("{sz:#>11}") } @@ -1198,7 +1198,7 @@ fn region_si(es: u64, ec: u64, bs: u32) -> String { * Return a formatted string of the extent file size in SI units */ fn efile_si(es: u64, bs: u32) -> String { - let sz = Byte::from_u64((bs as u64 * es).into()); + let sz = Byte::from_u64(bs as u64 * es); format!("{sz:#>11}") }