Merge pull request #3189 from Skgland/fix-function_casts_as_integer

fix `function_casts_as_integer` warning
This commit is contained in:
Mark Thom
2026-03-09 22:06:33 -07:00
committed by GitHub
7 changed files with 108 additions and 55 deletions

View File

@@ -61,8 +61,7 @@ impl MachineState {
cc: 0,
global_clock: 0,
dynamic_mode: FirstOrNext::First,
unify_fn: MachineState::unify,
bind_fn: MachineState::bind,
occurs_check: &Nsto,
run_cleaners_fn: |_| false,
throwing_resource_error: false,
}
@@ -624,7 +623,7 @@ impl MachineState {
}
};
(self.bind_fn)(self, r, f_a);
self.occurs_check.bind(self, r, f_a);
Ok(())
}