From b6bc02788a5326466601062e865f528a1e6b817a Mon Sep 17 00:00:00 2001 From: Devashish Dixit Date: Tue, 12 Nov 2019 16:27:47 +0800 Subject: [PATCH] Run cargo fmt for doc comments --- rustfmt.toml | 1 + src/macros.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rustfmt.toml b/rustfmt.toml index 1082fd888..c6d404e21 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 b7811d2ea..638a2348b 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);