about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--clippy_lints/src/redundant_closure_call.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/clippy_lints/src/redundant_closure_call.rs b/clippy_lints/src/redundant_closure_call.rs
index 4e1ffc2fe37..d979087a6d7 100644
--- a/clippy_lints/src/redundant_closure_call.rs
+++ b/clippy_lints/src/redundant_closure_call.rs
@@ -74,7 +74,7 @@ fn is_async_closure(body: &hir::Body<'_>) -> bool {
 }
 
 /// Tries to find the innermost closure:
-/// ```rust
+/// ```rust,ignore
 /// (|| || || || 42)()()()()
 ///  ^^^^^^^^^^^^^^          given this nested closure expression
 ///           ^^^^^          we want to return this closure
@@ -110,10 +110,10 @@ fn find_innermost_closure<'tcx>(
 }
 
 /// "Walks up" the chain of calls to find the outermost call expression, and returns the depth:
-/// ```rust
+/// ```rust,ignore
 /// (|| || || 3)()()()
-///                ^^      this is the call expression we were given
-///                    ^^  this is what we want to return (and the depth is 3)
+///             ^^      this is the call expression we were given
+///                 ^^  this is what we want to return (and the depth is 3)
 /// ```
 fn get_parent_call_exprs<'tcx>(
     cx: &LateContext<'tcx>,