From 8b19845ffb7b9b6fd760f0bf8066731028377237 Mon Sep 17 00:00:00 2001
From: Piotr Mikulski <piotr@near.org>
Date: Thu, 23 Dec 2021 21:46:21 -0800
Subject: [PATCH] refactor

---
 clippy_lints/src/methods/unwrap_or_else_default.rs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/clippy_lints/src/methods/unwrap_or_else_default.rs b/clippy_lints/src/methods/unwrap_or_else_default.rs
index e8827b1e5af..cde707790ef 100644
--- a/clippy_lints/src/methods/unwrap_or_else_default.rs
+++ b/clippy_lints/src/methods/unwrap_or_else_default.rs
@@ -5,8 +5,6 @@ use clippy_utils::{
     diagnostics::span_lint_and_sugg, is_default_equivalent_ctor, is_diag_trait_item, is_trait_item,
     source::snippet_with_applicability, ty::is_type_diagnostic_item,
 };
-use rustc_hir::ExprKind;
-
 use rustc_errors::Applicability;
 use rustc_hir as hir;
 use rustc_lint::LateContext;
@@ -26,7 +24,7 @@ pub(super) fn check<'tcx>(
     let is_result = is_type_diagnostic_item(cx, recv_ty, sym::Result);
 
     let is_default_eq = match &u_arg.kind {
-        ExprKind::Path(qpath) => {
+        hir::ExprKind::Path(qpath) => {
             if let Some(repl_def_id) = cx.qpath_res(qpath, u_arg.hir_id).opt_def_id() {
                 if is_diag_trait_item(cx, repl_def_id, sym::Default)
                     || is_default_equivalent_ctor(cx, repl_def_id, qpath)