mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix compilation on stable
This commit is contained in:
parent
c2b2c7b918
commit
7d81594c69
@ -45,7 +45,7 @@ fn start_server(model: Arc<Mutex<Model>>) {
|
|||||||
.cb_sink
|
.cb_sink
|
||||||
.send(Box::new(move |s: &mut cursive::Cursive| {
|
.send(Box::new(move |s: &mut cursive::Cursive| {
|
||||||
s.add_layer(
|
s.add_layer(
|
||||||
views::Dialog::text(&format!("{:?}", err))
|
views::Dialog::text(format!("{:?}", err))
|
||||||
.title("Error in TCP server")
|
.title("Error in TCP server")
|
||||||
.button("Quit", |s| s.quit()),
|
.button("Quit", |s| s.quit()),
|
||||||
);
|
);
|
||||||
@ -135,7 +135,7 @@ fn build_selector(model: Arc<Mutex<Model>>) -> impl cursive::view::View {
|
|||||||
.child(views::Button::new("Test", |s| {
|
.child(views::Button::new("Test", |s| {
|
||||||
if let Err(err) = test_server() {
|
if let Err(err) = test_server() {
|
||||||
s.add_layer(
|
s.add_layer(
|
||||||
views::Dialog::info(&format!("{:?}", err))
|
views::Dialog::info(format!("{:?}", err))
|
||||||
.title("Error running test."),
|
.title("Error running test."),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user