From 03249e85bd30f2be90b91e13f1abb3205b0e88a7 Mon Sep 17 00:00:00 2001 From: Dimitri Merejkowsky Date: Fri, 12 Aug 2022 15:02:20 +0200 Subject: [PATCH] clippy fixes --- src/console_info.rs | 2 +- src/fsops.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/console_info.rs b/src/console_info.rs index 0af3d26..442e965 100644 --- a/src/console_info.rs +++ b/src/console_info.rs @@ -141,7 +141,7 @@ fn human_seconds(s: usize) -> String { let hours = s / 3600; let minutes = (s / 60) % 60; let seconds = s % 60; - return format!("{:02}:{:02}:{:02}", hours, minutes, seconds); + format!("{:02}:{:02}:{:02}", hours, minutes, seconds) } fn truncate_lossy(text: &str, maxsize: usize) -> String { diff --git a/src/fsops.rs b/src/fsops.rs index a2d2607..5997f79 100644 --- a/src/fsops.rs +++ b/src/fsops.rs @@ -16,7 +16,7 @@ use crate::progress::ProgressMessage; const BUFFER_SIZE: usize = 100 * 1024; -#[derive(PartialEq, Debug)] +#[derive(PartialEq, Eq, Debug)] pub enum SyncOutcome { UpToDate, FileCopied { size: u64 },