Avoid warnings in standard build.

This commit is contained in:
Stephen Chung
2020-07-26 10:03:59 +08:00
parent 7f1859b6ed
commit 353df6bea1
7 changed files with 43 additions and 18 deletions

View File

@@ -14,11 +14,14 @@ use crate::utils::StaticVec;
use crate::stdlib::{
boxed::Box,
fmt, format,
rc::Rc,
string::{String, ToString},
sync::Arc,
};
#[cfg(not(feature = "sync"))]
use crate::stdlib::rc::Rc;
#[cfg(feature = "sync")]
use crate::stdlib::sync::Arc;
/// A general expression evaluation trait object.
#[cfg(not(feature = "sync"))]
pub type FnCustomSyntaxEval = dyn Fn(