Fix several warnings and remove some forbid(warnings) (#2874)

This commit is contained in:
Bastian Köcher
2019-06-15 10:30:04 +02:00
committed by Gavin Wood
parent ecf25c9289
commit e09045bde2
6 changed files with 13 additions and 19 deletions
+3 -3
View File
@@ -88,7 +88,7 @@ fn basic_two_nodes_connectivity() {
});
let combined = fut1.select(fut2).map_err(|(err, _)| err);
tokio::runtime::Runtime::new().unwrap().block_on_all(combined).unwrap();
let _ = tokio::runtime::Runtime::new().unwrap().block_on_all(combined).unwrap();
}
#[test]
@@ -141,7 +141,7 @@ fn two_nodes_transfer_lots_of_packets() {
});
let combined = fut1.select(fut2).map_err(|(err, _)| err);
tokio::runtime::Runtime::new().unwrap().block_on(combined).unwrap();
let _ = tokio::runtime::Runtime::new().unwrap().block_on(combined).unwrap();
}
#[test]
@@ -255,7 +255,7 @@ fn basic_two_nodes_requests_in_parallel() {
});
let combined = fut1.select(fut2).map_err(|(err, _)| err);
tokio::runtime::Runtime::new().unwrap().block_on_all(combined).unwrap();
let _ = tokio::runtime::Runtime::new().unwrap().block_on_all(combined).unwrap();
}
#[test]