]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/mutable_debug_assertion.rs
Add version = "Two" to rustfmt.toml
[rust.git] / clippy_lints / src / mutable_debug_assertion.rs
index 76417aa7ed09d39682788314a61b2213c05ec0b9..9ac127abe0a4b83dcaa25f88e371c192d66520b1 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 }
     }
 }