This commit is contained in:
Simon Gardling
2022-05-04 23:43:50 -04:00
parent 5e5dd0f7a6
commit 243135b3dc
8 changed files with 47 additions and 30 deletions

View File

@@ -31,7 +31,9 @@ impl BackingFunction {
match &parse_result {
Err(e) => return Err(e.to_string()),
Ok(_) => {
let var_names = parse_result.as_ref().unwrap().var_names().to_vec();
let var_names = unsafe { parse_result.as_ref().unwrap_unchecked() }
.var_names()
.to_vec();
if var_names != ["x"] {
let var_names_not_x: Vec<&String> = var_names
@@ -50,7 +52,7 @@ impl BackingFunction {
}
}
}
parse_result.unwrap()
unsafe { parse_result.unwrap_unchecked() }
}
};