diff --git a/Cargo.toml b/Cargo.toml index ed5ba5b2..fa8f940c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ num-traits = { version = "0.2.11", default-features = false } [features] #default = ["unchecked", "sync", "no_optimize", "no_float", "only_i32", "no_index", "no_object", "no_function", "no_module"] -default = ["serde"] +default = [] plugins = [] unchecked = [] # unchecked arithmetic sync = [] # restrict to only types that implement Send + Sync diff --git a/src/lib.rs b/src/lib.rs index 77c39460..c6626b98 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -87,6 +87,7 @@ pub mod packages; mod parser; mod result; mod scope; +#[cfg(feature = "serde")] mod serde; mod stdlib; mod token; diff --git a/src/parser.rs b/src/parser.rs index 8dc1af84..505c8e7e 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1701,7 +1701,7 @@ fn make_dot_expr(lhs: Expr, rhs: Expr, op_pos: Position) -> Result Expr::Dot(Box::new((lhs, func, op_pos))), // lhs.rhs - (lhs, rhs) => return Err(PERR::PropertyExpected.into_err(rhs.position())), + (_, rhs) => return Err(PERR::PropertyExpected.into_err(rhs.position())), }) }