Skip to content

Commit 5398544

Browse files
committed
Adjust path names
1 parent 8a3dfe4 commit 5398544

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lints/duplicate_mutable_accounts/src/alternate_constraint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl<'cx, 'tcx> Visitor<'tcx> for Values<'cx, 'tcx> {
7474
let middle_ty = self.cx.typeck_results().expr_ty(mut_expr);
7575
// let mut_expr_def_id = self.cx.tcx.hir().local_def_id(mut_expr.hir_id).to_def_id();
7676
// let middle_ty = self.cx.tcx.type_of(mut_expr_def_id);
77-
if match_type(self.cx, middle_ty, &paths::ANCHOR_ACCOUNT);
77+
if match_type(self.cx, middle_ty, &paths::ANCHOR_LANG_ACCOUNT);
7878
// grab T generic parameter
7979
if let MiddleTyKind::Adt(_adt_def, substs) = middle_ty.kind();
8080
if substs.len() == ANCHOR_ACCOUNT_GENERIC_ARG_COUNT;

lints/duplicate_mutable_accounts/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl<'tcx> LateLintPass<'tcx> for DuplicateMutableAccounts {
9696
if_chain! {
9797
if let Some(def_id) = get_def_id(field.ty);
9898
let middle_ty = cx.tcx.type_of(def_id);
99-
if match_type(cx, middle_ty, &paths::ANCHOR_ACCOUNT);
99+
if match_type(cx, middle_ty, &paths::ANCHOR_LANG_ACCOUNT);
100100
if let Some(account_id) = get_anchor_account_type_def_id(field);
101101
then {
102102
if let Some(v) = self.anchor_accounts.get_mut(&account_id) {

0 commit comments

Comments
 (0)