about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Wright <mikerite@lavabit.com>2020-09-15 21:25:03 +0200
committerMichael Wright <mikerite@lavabit.com>2020-09-15 21:32:27 +0200
commit79a0e5110a0168945d43e334e6dc0d12e0bc1487 (patch)
tree51f58f26ed21eb586dab57c0f00e5356a40d3c16
parentecbe9ac0e9b68b171e4a48db40e91e2e44370c2a (diff)
downloadrust-79a0e5110a0168945d43e334e6dc0d12e0bc1487.tar.gz
rust-79a0e5110a0168945d43e334e6dc0d12e0bc1487.zip
manual-strip: Fix formatting
-rw-r--r--clippy_lints/src/manual_strip.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/clippy_lints/src/manual_strip.rs b/clippy_lints/src/manual_strip.rs
index 127938aecd6..4afb0ab3bad 100644
--- a/clippy_lints/src/manual_strip.rs
+++ b/clippy_lints/src/manual_strip.rs
@@ -124,8 +124,7 @@ fn len_arg<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) -> Option<&'tcx E
         if match_def_path(cx, method_def_id, &paths::STR_LEN);
         then {
             Some(arg)
-        }
-        else {
+        } else {
             None
         }
     }