diff --git a/rustfmt.toml b/rustfmt.toml index 1082fd8..c6d404e 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1 +1,2 @@ version = "Two" +format_code_in_doc_comments = true diff --git a/src/macros.rs b/src/macros.rs index b7811d2..638a234 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -23,8 +23,8 @@ /// ``` /// # async_std::task::block_on(async { /// # -/// use async_std::prelude::*; /// use async_std::io; +/// use async_std::prelude::*; /// use async_std::print; /// /// print!("this ").await; @@ -181,8 +181,8 @@ macro_rules! eprintln { /// # /// use std::cell::Cell; /// -/// use async_std::task; /// use async_std::prelude::*; +/// use async_std::task; /// /// task_local! { /// static VAL: Cell = Cell::new(5);