fix #47
All checks were successful
Test Rust project / test (ubuntu-latest, stable) (push) Successful in 43s

This commit is contained in:
2026-01-27 14:50:05 -07:00
parent 077b53f6ff
commit b3b2c59a36
3 changed files with 13 additions and 6 deletions

View File

@@ -276,11 +276,19 @@ impl ExtractionContext {
}
}
pub fn dump_vars(&self) -> Vec<String> {
if let Ok(r) = self.var_registry.read() { r.clone() } else { Vec::new() }
if let Ok(r) = self.var_registry.read() {
r.clone()
} else {
Vec::new()
}
}
#[allow(dead_code)]
pub fn dump_fns(&self) -> Vec<String> {
if let Ok(r) = self.fn_registry.read() { r.clone() } else { Vec::new() }
if let Ok(r) = self.fn_registry.read() {
r.clone()
} else {
Vec::new()
}
}
}
@@ -308,8 +316,7 @@ impl Context for ExtractionContext {
} else {
panic!("The RwLock should always be write-able")
}
// Ok(Value::Int(1))
unimplemented!("Extracting function identifier not implemented yet")
Ok(Value::Int(1))
}
fn are_builtin_functions_disabled(&self) -> bool {