From 4a8f0a1c501b51ab84e0a30b691d422f7c6390ef Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Wed, 21 Jun 2023 08:42:59 +0200 Subject: [PATCH] tui: run rustfmt Signed-off-by: Christoph Heiss --- proxmox-tui-installer/src/main.rs | 4 +++- proxmox-tui-installer/src/views/mod.rs | 6 +----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/proxmox-tui-installer/src/main.rs b/proxmox-tui-installer/src/main.rs index 09ade19..e9ff545 100644 --- a/proxmox-tui-installer/src/main.rs +++ b/proxmox-tui-installer/src/main.rs @@ -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()), ); })) } diff --git a/proxmox-tui-installer/src/views/mod.rs b/proxmox-tui-installer/src/views/mod.rs index e638601..52e04f4 100644 --- a/proxmox-tui-installer/src/views/mod.rs +++ b/proxmox-tui-installer/src/views/mod.rs @@ -150,11 +150,7 @@ impl DiskSizeEditView { self.with_view(|v| { v.get_child(0)? .downcast_ref::>()? - .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() }