Skip to content

Commit

Permalink
fix cargo clippy warning and error
Browse files Browse the repository at this point in the history
  • Loading branch information
rtczza committed Apr 18, 2024
1 parent 07f6770 commit 40887da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/options/vars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,5 @@ impl MockVars {
"NO_COLOR" => self.no_colors = value.clone(),
_ => (),
};
()
}
}
4 changes: 2 additions & 2 deletions src/output/render/groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub mod test {
GroupFormat::Regular,
file_user
)
)
);
}

#[test]
Expand All @@ -203,7 +203,7 @@ pub mod test {
GroupFormat::Regular,
file_user
)
)
);
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/output/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ mod test {
let max_month_width = 4;
let month = "1\u{2F49}"; // 1月
let padding = short_month_padding(max_month_width, month);
let final_str = format!("{:<width$}", month, width = padding);
let final_str = format!("{month:<padding$}");
assert_eq!(max_month_width, UnicodeWidthStr::width(final_str.as_str()));
}

Expand Down

0 comments on commit 40887da

Please sign in to comment.