Clippy fixes (#309)

* Automatic clippy fixes

* Manual clippy corrections
This commit is contained in:
Philip Kristoffersen
2023-01-04 20:28:43 +01:00
committed by GitHub
parent f1591b7818
commit 4ed9490c57
21 changed files with 42 additions and 46 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ impl ItchPlatform {
//This is done to paths dedupe
let paths: HashSet<&DbPaths> = paths.iter().collect();
let res = paths.iter().filter_map(|e| dbpath_to_game(*e)).collect();
let res = paths.iter().filter_map(|e| dbpath_to_game(e)).collect();
Ok(res)
}
}
@@ -57,7 +57,7 @@ fn dbpath_to_game(paths: &DbPaths) -> Option<ItchGame> {
paths
.paths
.iter()
.filter(|p| Path::new(&paths.base_path).join(&p).is_executable())
.filter(|p| Path::new(&paths.base_path).join(p).is_executable())
.find_map(|executable| {
let gz_bytes = std::fs::read(&recipt).unwrap();
let mut d = GzDecoder::new(gz_bytes.as_slice());