This commit is contained in:
Micha Reiser 2023-10-23 11:12:25 +09:00 committed by GitHub
parent d6a4283003
commit 2c2ebf952a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 16 deletions

View file

@ -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);
}