Remove unwrap errors
This commit is contained in:
parent
f33eef9c5a
commit
c721164d99
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user