Use RhaiResult for plugin return.

This commit is contained in:
Stephen Chung
2021-03-19 10:30:30 +08:00
parent 1200ffcd2b
commit aa0594210c
6 changed files with 35 additions and 35 deletions

View File

@@ -2,11 +2,11 @@
pub use crate::fn_native::{CallableFunction, FnCallArgs};
pub use crate::stdlib::{any::TypeId, boxed::Box, format, mem, string::ToString, vec as new_vec};
use crate::RhaiResult;
pub use crate::{
Dynamic, Engine, EvalAltResult, FnAccess, FnNamespace, ImmutableString, Module,
NativeCallContext, Position,
};
pub type RhaiResult = Result<Dynamic, Box<EvalAltResult>>;
#[cfg(not(features = "no_module"))]
pub use rhai_codegen::*;