Skip to content

Commit 61ee047

Browse files
committed
tiny fix
1 parent 379ccf7 commit 61ee047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/borrow_deref_ref.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ declare_clippy_lint! {
5252
declare_lint_pass!(BorrowDerefRef => [BORROW_DEREF_REF]);
5353

5454
impl LateLintPass<'_> for BorrowDerefRef {
55-
fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx rustc_hir::Expr<'_>) {
55+
fn check_expr(&mut self, cx: &LateContext<'_>, e: &rustc_hir::Expr<'_>) {
5656
if_chain! {
5757
if !e.span.from_expansion();
5858
if let ExprKind::AddrOf(_, Mutability::Not, addrof_target) = e.kind;
@@ -92,7 +92,7 @@ impl LateLintPass<'_> for BorrowDerefRef {
9292
// has deref trait -> give 2 help
9393
// doesn't have deref trait -> give 1 help
9494
if let Some(deref_trait_id) = cx.tcx.lang_items().deref_trait(){
95-
if !implements_trait(cx, inner_ty, deref_trait_id, &[]) {
95+
if !implements_trait(cx, *inner_ty, deref_trait_id, &[]) {
9696
return;
9797
}
9898
}

0 commit comments

Comments
 (0)