Skip to content

Commit 54e7f7e

Browse files
committed
don't test the code in the lint docs
1 parent 2dc8c08 commit 54e7f7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/await_holding_lock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ declare_clippy_lint! {
1818
///
1919
/// **Example:**
2020
///
21-
/// ```rust
21+
/// ```rust,ignore
2222
/// use std::sync::Mutex;
2323
///
2424
/// async fn foo(x: &Mutex<u32>) {
@@ -28,7 +28,7 @@ declare_clippy_lint! {
2828
/// }
2929
/// ```
3030
/// Use instead:
31-
/// ```rust
31+
/// ```rust,ignore
3232
/// use std::sync::Mutex;
3333
///
3434
/// async fn foo(x: &Mutex<u32>) {

0 commit comments

Comments
 (0)