fix unused result warning in async example

This commit is contained in:
Sean McArthur
2018-07-05 15:06:09 -07:00
parent 6c78e363e0
commit c1c5f14b7c

View File

@@ -23,7 +23,7 @@ fn fetch() -> impl Future<Item=(), Error=()> {
.map_err(|err| println!("request error: {}", err))
.map(|body| {
let mut body = Cursor::new(body);
io::copy(&mut body, &mut io::stdout())
let _ = io::copy(&mut body, &mut io::stdout())
.map_err(|err| {
println!("stdout error: {}", err);
});