async-tcp & future-hello: use better futures functions

This commit is contained in:
hellerve committed 2019-01-25 18:09:59 +01:00
1 parent b439b235f8
commit 5b59369043
2 files changed
+11 -2

No files matched your search

+2
View File
@@ -37,4 +37,6 @@ where
fn main() {
let future = Display(HelloWorld);
tokio::run(future);
let better_future = HelloWorld.map(|value| println!("{}", value));
tokio::run(better_future);
}