mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Clippy fixes (#309)
* Automatic clippy fixes * Manual clippy corrections
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user