Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Vara Prasad Bandaru committed Feb 7, 2024
1 parent 99f0742 commit 8386195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lints/missing_owner_check/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use if_chain::if_chain;
use rustc_hir::{
def_id::LocalDefId,
intravisit::{walk_expr, FnKind, Visitor},
Body, Expr, ExprKind, FnDecl, QPath
Body, Expr, ExprKind, FnDecl, QPath,
};
use rustc_lint::{LateContext, LateLintPass};
use rustc_middle::ty;
Expand Down Expand Up @@ -137,7 +137,7 @@ fn is_call_to_clone<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'tcx>) -> boo

// s3v3ru5: if a local variable is of type AccountInfo, the rhs of the let statement assigning to variable
// will be of type AccountInfo. The lint would check that expression and there is no need for checking the
// local variable as well.
// local variable as well.
// This removes the false positives of following pattern:
// `let x = {Account, Program, ...verified structs}.to_account_info()`,
// the lint reports uses of `x`. Having this check would remove such false positives.
Expand Down

0 comments on commit 8386195

Please sign in to comment.