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 },