about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndy Weiss <dragonbear@google.com>2020-04-09 22:12:34 -0700
committerAndy Weiss <dragonbear@google.com>2020-04-21 21:07:43 -0700
commit54e7f7e5f2d38ef74e5e3e8de44beccc251cf5d7 (patch)
tree7791858d365ce13b017b508c4933dc235f5797e3
parent2dc8c083f54454ca87bb09d691577eada2d23539 (diff)
downloadrust-54e7f7e5f2d38ef74e5e3e8de44beccc251cf5d7.tar.gz
rust-54e7f7e5f2d38ef74e5e3e8de44beccc251cf5d7.zip
don't test the code in the lint docs
-rw-r--r--clippy_lints/src/await_holding_lock.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/await_holding_lock.rs b/clippy_lints/src/await_holding_lock.rs
index 8e3e0ed0430..1b2b020bd55 100644
--- a/clippy_lints/src/await_holding_lock.rs
+++ b/clippy_lints/src/await_holding_lock.rs
@@ -18,7 +18,7 @@ declare_clippy_lint! {
     ///
     /// **Example:**
     ///
-    /// ```rust
+    /// ```rust,ignore
     /// use std::sync::Mutex;
     ///
     /// async fn foo(x: &Mutex<u32>) {
@@ -28,7 +28,7 @@ declare_clippy_lint! {
     /// }
     /// ```
     /// Use instead:
-    /// ```rust
+    /// ```rust,ignore
     /// use std::sync::Mutex;
     ///
     /// async fn foo(x: &Mutex<u32>) {