]> git.proxmox.com Git - pve-installer.git/commitdiff
tui: run rustfmt
authorChristoph Heiss <c.heiss@proxmox.com>
Wed, 21 Jun 2023 06:42:59 +0000 (08:42 +0200)
committerChristoph Heiss <c.heiss@proxmox.com>
Wed, 21 Jun 2023 06:42:59 +0000 (08:42 +0200)
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs
proxmox-tui-installer/src/views/mod.rs

index 09ade19bef3bc5010548e5684e6d95940eeb40b1..e9ff545d3008b7ee5dec311f63f3f58439e3592e 100644 (file)
@@ -745,7 +745,9 @@ fn install_progress_dialog(siv: &mut Cursive) -> InstallerView {
                             cb_sink.send(Box::new(move |siv| {
                                 let title = if success { "Success" } else { "Failure" };
                                 siv.add_layer(
-                                    Dialog::text(msg).title(title).button("Reboot", |s| s.quit()),
+                                    Dialog::text(msg)
+                                        .title(title)
+                                        .button("Reboot", |s| s.quit()),
                                 );
                             }))
                         }
index e63860162bd7213603bcf142dd6808214d512389..52e04f48918efe988e590a2cefd0e5567a6e74bf 100644 (file)
@@ -150,11 +150,7 @@ impl DiskSizeEditView {
         self.with_view(|v| {
             v.get_child(0)?
                 .downcast_ref::<ResizedView<FloatEditView>>()?
-                .with_view(|v| {
-                    v.get_content()
-                        .ok()
-                        .map(|val| (val) as u64)
-                })?
+                .with_view(|v| v.get_content().ok().map(|val| val as u64))?
         })
         .flatten()
     }