chore: Interpreter hardening (#536)

Fix majority of the interpreter lint errors/warnings

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2025-12-30 18:21:09 -06:00
committed by GitHub
parent 28891ef883
commit 5afbd96159
2 changed files with 467 additions and 333 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -219,10 +219,11 @@ pub fn resolve_effect(interpreter: &mut Interpreter) -> Result<(), TargetCompile
// Update the target info with the correct effect schema, name, and path
let expected_path = format!("data.{}.{}", package, effect_name);
if let Some(ref mut target_info) = interpreter.compiled_policy_mut().target_info {
target_info.effect_schema = effect_schema;
target_info.effect_name = effect_name.as_ref().into();
target_info.effect_path = expected_path.as_str().into();
if let Some(ref mut target_info_mut) = interpreter.compiled_policy_mut().target_info
{
target_info_mut.effect_schema = effect_schema;
target_info_mut.effect_name = effect_name.as_ref().into();
target_info_mut.effect_path = expected_path.as_str().into();
}
}
_ => {