mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-17 17:10:34 +00:00
Rust 1.73 (#8007)
This commit is contained in:
parent
d6a4283003
commit
2c2ebf952a
9 changed files with 13 additions and 16 deletions
|
@ -1159,7 +1159,7 @@ impl<'a> SemanticModel<'a> {
|
|||
pub fn add_delayed_annotation(&mut self, binding_id: BindingId, annotation_id: BindingId) {
|
||||
self.delayed_annotations
|
||||
.entry(binding_id)
|
||||
.or_insert_with(Vec::new)
|
||||
.or_default()
|
||||
.push(annotation_id);
|
||||
}
|
||||
|
||||
|
@ -1173,7 +1173,7 @@ impl<'a> SemanticModel<'a> {
|
|||
pub fn add_rebinding_scope(&mut self, binding_id: BindingId, scope_id: ScopeId) {
|
||||
self.rebinding_scopes
|
||||
.entry(binding_id)
|
||||
.or_insert_with(Vec::new)
|
||||
.or_default()
|
||||
.push(scope_id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue