Skip to content

Commit f7bf364

Browse files
committed
Fix new unused result warning
The nightly build started failing with the following message: error: unused result of type `((), ())` --> xtrace-example/src/main.rs:91:5 | 91 | futures_util::try_join!(future1, future2)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Signed-off-by: Uli Schlachter <psychon@znc.in>
1 parent 44780c3 commit f7bf364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtrace-example/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ async fn handle_client_impl(client: Async<TcpStream>) -> IOResult<()> {
8888

8989
// try_join polls both futures and returns an error once one of them returns an error.
9090
// (It also returns a result once both futures are done, but that should not matter here).
91-
futures_util::try_join!(future1, future2)?;
91+
let _ = futures_util::try_join!(future1, future2)?;
9292

9393
Ok(())
9494
}

0 commit comments

Comments
 (0)