Skip to content

Commit

Permalink
update exmex
Browse files Browse the repository at this point in the history
  • Loading branch information
bertiqwerty committed May 25, 2024
1 parent 08c0627 commit 0b8f5bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ eframe = { version = "0.27", default-features = false, features = [
"persistence", # Enable restoring app state when restarting the app.
] }
serde = { version = "1", features = ["derive"] }
exmex = { version = "0.19.0", features = ["serde", "value"] }
exmex = { version = "0.20.1", features = ["serde", "value"] }
web-sys = { version = "0.3.64", features = [
"Window",
"Document",
Expand Down
1 change: 1 addition & 0 deletions src/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ fn eval(expr: &Expr, vars: &[Val<i32, f64>]) -> BlcResult<f64> {
}
Val::None => Err(blcerr!("Parsed expression returned none"))?,
Val::Error(e) => Err(BlcError::new(e.msg()))?,
Val::Array(_) => Err(blcerr!("Parsed expression returned array"))?,
};
Ok(x)
}
Expand Down

0 comments on commit 0b8f5bc

Please sign in to comment.