]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/mutable_debug_assertion.rs
Auto merge of #82680 - jturner314:div_euclid-docs, r=JohnTitor
[rust.git] / src / tools / clippy / clippy_lints / src / mutable_debug_assertion.rs
index 71f91eb4bfbe39bc8e648819f84c1c052315fee8..9caacb5db7c9c67f00bf13a69a0f2ab66e1c38e6 100644 (file)
@@ -73,11 +73,7 @@ fn new(cx: &'a LateContext<'tcx>) -> Self {
     }
 
     fn expr_span(&self) -> Option<Span> {
-        if self.found {
-            self.expr_span
-        } else {
-            None
-        }
+        if self.found { self.expr_span } else { None }
     }
 }