From 7d81594c693515a24d97047e3c963205abfc7abe Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Mon, 17 Jun 2019 14:59:52 -0700 Subject: [PATCH] Fix compilation on stable --- examples/tcp_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tcp_server.rs b/examples/tcp_server.rs index 9f0a8f5..b63ca38 100644 --- a/examples/tcp_server.rs +++ b/examples/tcp_server.rs @@ -45,7 +45,7 @@ fn start_server(model: Arc>) { .cb_sink .send(Box::new(move |s: &mut cursive::Cursive| { s.add_layer( - views::Dialog::text(&format!("{:?}", err)) + views::Dialog::text(format!("{:?}", err)) .title("Error in TCP server") .button("Quit", |s| s.quit()), ); @@ -135,7 +135,7 @@ fn build_selector(model: Arc>) -> impl cursive::view::View { .child(views::Button::new("Test", |s| { if let Err(err) = test_server() { s.add_layer( - views::Dialog::info(&format!("{:?}", err)) + views::Dialog::info(format!("{:?}", err)) .title("Error running test."), ); }