1
0

Remove unwrap errors

This commit is contained in:
Jeff 2023-10-30 15:42:06 -04:00
parent f33eef9c5a
commit c721164d99

View File

@ -45,8 +45,7 @@ fn main() {
if let Some(input) = args.input { if let Some(input) = args.input {
context context
.variables_mut() .variables_mut()
.insert("input".to_string(), Value::String(input)) .insert("input".to_string(), Value::String(input));
.unwrap();
} }
if let Some(path) = args.input_path { if let Some(path) = args.input_path {
@ -54,8 +53,7 @@ fn main() {
context context
.variables_mut() .variables_mut()
.insert("input".to_string(), Value::String(file_contents)) .insert("input".to_string(), Value::String(file_contents));
.unwrap();
} }
let eval_result = if let Some(path) = args.path { let eval_result = if let Some(path) = args.path {