Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmerejkowsky committed Aug 12, 2022
1 parent 15c25bb commit 03249e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/console_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/fsops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 03249e8

Please sign in to comment.