mirror of
https://git.proxmox.com/git/pve-installer
synced 2025-08-13 18:02:33 +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| {
|
cb_sink.send(Box::new(move |siv| {
|
||||||
let title = if success { "Success" } else { "Failure" };
|
let title = if success { "Success" } else { "Failure" };
|
||||||
siv.add_layer(
|
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| {
|
self.with_view(|v| {
|
||||||
v.get_child(0)?
|
v.get_child(0)?
|
||||||
.downcast_ref::<ResizedView<FloatEditView>>()?
|
.downcast_ref::<ResizedView<FloatEditView>>()?
|
||||||
.with_view(|v| {
|
.with_view(|v| v.get_content().ok().map(|val| val as u64))?
|
||||||
v.get_content()
|
|
||||||
.ok()
|
|
||||||
.map(|val| (val) as u64)
|
|
||||||
})?
|
|
||||||
})
|
})
|
||||||
.flatten()
|
.flatten()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user