Skip to content

Commit

Permalink
run cargo update; address Clippy findings
Browse files Browse the repository at this point in the history
  • Loading branch information
peap committed Feb 20, 2024
1 parent 9208073 commit ee6d7f1
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 53 deletions.
113 changes: 62 additions & 51 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ impl Config {
if file.exists() {
let f = File::open(file).expect("Could not open cache file.");
let reader = BufReader::new(f);
for repo_path in reader.lines().flatten() {
for repo_path in reader.lines().map_while(Result::ok) {
if !Path::new(&repo_path).exists() {
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ where
default_cmd: String::from("status"),
show_untracked: true,
cache_file: Some(
base_path.clone().join("test-cache-file.txt").to_path_buf(),
base_path.join("test-cache-file.txt").to_path_buf(),
),
manpage_file: None,
};
Expand Down

0 comments on commit ee6d7f1

Please sign in to comment.