From 4add8a228e2e13054c62800c13e53ff992453c6e Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Tue, 24 Sep 2024 13:28:35 -0400 Subject: [PATCH] clippy: size is already u64 Signed-off-by: John Eckersberg --- lib/src/deploy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/deploy.rs b/lib/src/deploy.rs index 6838630e6..6bcfda9cc 100644 --- a/lib/src/deploy.rs +++ b/lib/src/deploy.rs @@ -172,7 +172,7 @@ async fn handle_layer_progress_print( layer = layers.recv() => { if let Some(l) = layer { let layer = descriptor_of_progress(&l); - let layer_size = u64::try_from(layer.size()).unwrap(); + let layer_size = layer.size(); if l.is_starting() { byte_bar.reset_elapsed(); byte_bar.reset_eta();