diff --git a/crates/ruff_python_semantic/src/context.rs b/crates/ruff_python_semantic/src/context.rs index 26d9d0a61f..5718d64dc2 100644 --- a/crates/ruff_python_semantic/src/context.rs +++ b/crates/ruff_python_semantic/src/context.rs @@ -1,3 +1,4 @@ +use std::collections::HashMap; use std::path::Path; use nohash_hasher::{BuildNoHashHasher, IntMap}; @@ -34,8 +35,7 @@ pub struct Context<'a> { // A stack of all bindings created in any scope, at any point in execution. pub bindings: Bindings<'a>, // Map from binding index to indexes of bindings that shadow it in other scopes. - pub shadowed_bindings: - std::collections::HashMap, BuildNoHashHasher>, + pub shadowed_bindings: HashMap, BuildNoHashHasher>, // Body iteration; used to peek at siblings. pub body: &'a [Stmt], pub body_index: usize,