From 99b822863093178c378b4ef03d86b8347c66e3a7 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 5 Sep 2020 17:55:35 +0800 Subject: [PATCH] Use smallvec/union for nightly builds. --- Cargo.toml | 2 +- tests/functions.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 83a2d021..9d989830 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ internals = [] # expose internal data structures unicode-xid-ident = ["unicode-xid"] # allow Unicode Standard Annex #31 for identifiers. # compiling for no-std -no_std = [ "no_closure", "num-traits/libm", "hashbrown", "core-error", "libm", "ahash" ] +no_std = [ "smallvec/union", "num-traits/libm", "hashbrown", "core-error", "libm", "ahash" ] [profile.release] lto = "fat" diff --git a/tests/functions.rs b/tests/functions.rs index 296f0ddd..34143ab6 100644 --- a/tests/functions.rs +++ b/tests/functions.rs @@ -1,6 +1,5 @@ #![cfg(not(feature = "no_function"))] use rhai::{Engine, EvalAltResult, ParseErrorType, INT}; -use std::io::Read; #[test] fn test_functions() -> Result<(), Box> {