From 0b8f5bc74c86ee25d28800c8cf14a4bd2abe7571 Mon Sep 17 00:00:00 2001 From: Behrang Shafei <50267830+bertiqwerty@users.noreply.github.com> Date: Sat, 25 May 2024 23:20:35 +0200 Subject: [PATCH] update exmex --- Cargo.lock | 6 +++--- Cargo.toml | 2 +- src/compute.rs | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9fd823a..8dc6419 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -650,9 +650,9 @@ checksum = "a0474425d51df81997e2f90a21591180b38eccf27292d755f3e30750225c175b" [[package]] name = "exmex" -version = "0.19.0" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00ba02c553b1567daf3831b357b48c72e56ea159c0d7d4cb2ce8b1ba4cb4ea58" +checksum = "b3d756a702ec06bb080cf553645cfec9adcc78c054ddb0a3436636f812d3553e" dependencies = [ "lazy_static", "num", @@ -955,7 +955,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c2a198fb6b0eada2a8df47933734e6d35d350665a33a3593d7164fa52c75c19" dependencies = [ "cfg-if", - "windows-targets 0.48.5", + "windows-targets 0.52.4", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 6895e4c..d31f970 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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", diff --git a/src/compute.rs b/src/compute.rs index 799d152..93fd2f6 100644 --- a/src/compute.rs +++ b/src/compute.rs @@ -26,6 +26,7 @@ fn eval(expr: &Expr, vars: &[Val]) -> BlcResult { } 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) }