Allow non-Dynamic in return_raw.

This commit is contained in:
Stephen Chung
2021-03-22 11:18:09 +08:00
parent b3bcd7bf79
commit a82f0fc738
23 changed files with 214 additions and 282 deletions

View File

@@ -11,7 +11,7 @@
//!
//! ## Contents of `my_script.rhai`
//!
//! ```,ignore
//! ```ignore
//! /// Brute force factorial function
//! fn factorial(x) {
//! if x == 1 { return 1; }
@@ -24,7 +24,7 @@
//!
//! ## The Rust part
//!
//! ```,no_run
//! ```no_run
//! use rhai::{Engine, EvalAltResult};
//!
//! fn main() -> Result<(), Box<EvalAltResult>>
@@ -88,7 +88,7 @@ mod token;
mod r#unsafe;
mod utils;
type RhaiResult = Result<Dynamic, stdlib::boxed::Box<EvalAltResult>>;
type RhaiResult = stdlib::result::Result<Dynamic, stdlib::boxed::Box<EvalAltResult>>;
/// The system integer type. It is defined as [`i64`].
///