mirror of https://github.com/astral-sh/ruff
[Bug fix] Fix rule B909's panic when checking large loop blocks (#11772)
This commit is contained in:
parent
6c1fa1d440
commit
f144edeefa
|
|
@ -114,9 +114,9 @@ fn is_mutating_function(function_name: &str) -> bool {
|
||||||
struct LoopMutationsVisitor<'a> {
|
struct LoopMutationsVisitor<'a> {
|
||||||
iter: &'a Expr,
|
iter: &'a Expr,
|
||||||
target: &'a Expr,
|
target: &'a Expr,
|
||||||
mutations: HashMap<u8, Vec<TextRange>>,
|
mutations: HashMap<u32, Vec<TextRange>>,
|
||||||
branches: Vec<u8>,
|
branches: Vec<u32>,
|
||||||
branch: u8,
|
branch: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> LoopMutationsVisitor<'a> {
|
impl<'a> LoopMutationsVisitor<'a> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue