Skip to content

Commit 7e1c1c1

Browse files
camsteffenflip1995
authored andcommitted
Fix qpath_res call
1 parent da65d81 commit 7e1c1c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/use_self.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::utils::{in_macro, meets_msrv, qpath_res, snippet_opt, span_lint_and_sugg};
1+
use crate::utils::{in_macro, meets_msrv, snippet_opt, span_lint_and_sugg};
22
use if_chain::if_chain;
33

44
use rustc_errors::Applicability;
@@ -300,7 +300,7 @@ impl<'tcx> LateLintPass<'tcx> for UseSelf {
300300
} = fun
301301
{
302302
if expr_ty_matches(cx, expr, self_ty) {
303-
let res = qpath_res(cx, qpath, fun.hir_id);
303+
let res = cx.qpath_res(qpath, fun.hir_id);
304304

305305
if let def::Res::Def(DefKind::Ctor(ctor_of, _), ..) = res {
306306
match ctor_of {

0 commit comments

Comments
 (0)