tui: run rustfmt

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
Christoph Heiss 2023-06-21 08:42:59 +02:00
parent 5ab640a142
commit 4a8f0a1c50
2 changed files with 4 additions and 6 deletions

View 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()),
);
}))
}

View 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()
}