Skip to content

Commit

Permalink
[Bug fix] Fix rule B909's panic when checking large loop blocks (#11772)
Browse files Browse the repository at this point in the history
  • Loading branch information
Embers-of-the-Fire authored Jun 6, 2024
1 parent 6c1fa1d commit f144ede
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ fn is_mutating_function(function_name: &str) -> bool {
struct LoopMutationsVisitor<'a> {
iter: &'a Expr,
target: &'a Expr,
mutations: HashMap<u8, Vec<TextRange>>,
branches: Vec<u8>,
branch: u8,
mutations: HashMap<u32, Vec<TextRange>>,
branches: Vec<u32>,
branch: u32,
}

impl<'a> LoopMutationsVisitor<'a> {
Expand Down

0 comments on commit f144ede

Please sign in to comment.