lanzatool: apply rustfmt to install.rs

This commit is contained in:
Julian Stecklina 2022-12-28 23:51:51 +01:00
parent f07618b64c
commit f6ae373500
1 changed files with 3 additions and 4 deletions

View File

@ -36,9 +36,8 @@ impl Installer {
pub fn install(&self) -> Result<()> {
for toplevel in &self.generations {
let generation_result = Generation::from_toplevel(toplevel).with_context(|| {
format!("Failed to build generation from toplevel: {toplevel:?}")
});
let generation_result = Generation::from_toplevel(toplevel)
.with_context(|| format!("Failed to build generation from toplevel: {toplevel:?}"));
let generation = match generation_result {
Ok(generation) => generation,
@ -47,7 +46,7 @@ impl Installer {
continue;
}
};
println!("Installing generation {generation}");
self.install_generation(&generation)