mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-26 08:05:46 +01:00
Reformat installer
This commit is contained in:
parent
139ff5793c
commit
722bf73316
@ -67,12 +67,16 @@ impl InstallerFramework {
|
|||||||
let latest_result = results
|
let latest_result = results
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.filter(|f| f.files.iter().filter(|x| regex.is_match(&x.name)).count() > 0)
|
.filter(|f| f.files.iter().filter(|x| regex.is_match(&x.name)).count() > 0)
|
||||||
.max_by_key(|f| f.version.clone()).unwrap();
|
.max_by_key(|f| f.version.clone())
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
// Find the matching file in here
|
// Find the matching file in here
|
||||||
let latest_file = latest_result.files.into_iter()
|
let latest_file = latest_result
|
||||||
|
.files
|
||||||
|
.into_iter()
|
||||||
.filter(|x| regex.is_match(&x.name))
|
.filter(|x| regex.is_match(&x.name))
|
||||||
.next().unwrap();
|
.next()
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
println!("{:?}", latest_file);
|
println!("{:?}", latest_file);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user