From 366546b9cec777f4dc9e52659b3f7c81d55de192 Mon Sep 17 00:00:00 2001 From: Florian Gilcher Date: Mon, 26 Aug 2019 14:39:25 -0700 Subject: [PATCH] Visibly import in tasks example Fixes #97 --- docs/src/concepts/tasks.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/src/concepts/tasks.md b/docs/src/concepts/tasks.md index 5c62811a..0711c126 100644 --- a/docs/src/concepts/tasks.md +++ b/docs/src/concepts/tasks.md @@ -6,9 +6,8 @@ In `async-std`, the [`tasks`][tasks] module is responsible for this. The simples ```rust,edition2018 # extern crate async_std; -# use async_std::{fs::File, io::Read, task}; -# use std::io; -# +use async_std::{io, task, fs::File, io::Read}; + async fn read_file(path: &str) -> Result { let mut file = File::open(path).await?; let mut contents = String::new();