]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/same_name_method.rs
Auto merge of #9148 - arieluy:then_some_unwrap_or, r=Jarcho
[rust.git] / clippy_lints / src / same_name_method.rs
index 20184d54b76e67b815cbf1effc51c6222bf84acb..73f8e083b29a0dae6e95cd614e40484785dbcc57 100644 (file)
@@ -55,11 +55,11 @@ fn check_crate_post(&mut self, cx: &LateContext<'tcx>) {
             if matches!(cx.tcx.def_kind(id.def_id), DefKind::Impl)
                 && let item = cx.tcx.hir().item(id)
                 && let ItemKind::Impl(Impl {
-                  items,
-                  of_trait,
-                  self_ty,
-                  ..
-                                      }) = &item.kind
+                    items,
+                    of_trait,
+                    self_ty,
+                    ..
+                }) = &item.kind
                 && let TyKind::Path(QPath::Resolved(_, Path { res, .. })) = self_ty.kind
             {
                 if !map.contains_key(res) {