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."), ); }