mirror of
https://git.proxmox.com/git/pve-installer
synced 2025-04-28 20:26:11 +00:00
tui: run rustfmt
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
parent
5ab640a142
commit
4a8f0a1c50
@ -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()),
|
||||
);
|
||||
}))
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user