Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Oct 28, 2024
1 parent 9f34210 commit 1b550ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ast/remove_globals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

use crate::*;
use crate::{core::ResolvedCall, typechecking::FuncType};
use indexmap::IndexMap;

struct GlobalRemover<'a> {
fresh: &'a mut SymbolGen,
Expand Down Expand Up @@ -143,7 +142,7 @@ impl<'a> GlobalRemover<'a> {
} => {
// A map from the global variables in actions to their new names
// in the query.
let mut globals = IndexMap::new();
let mut globals = HashMap::default();
rule.head.clone().visit_exprs(&mut |expr| {
if let Some(resolved_var) = expr.get_global_var() {
let new_name = self.fresh.fresh(&resolved_var.name);
Expand Down

0 comments on commit 1b550ab

Please sign in to comment.