Fix Send+Sync for EvalAltResult.

This commit is contained in:
Stephen Chung 2020-10-25 21:48:18 +08:00
parent 65432330c4
commit f670d55871
2 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,11 @@ Rhai Release Notes
Version 0.19.4
==============
Bug fixes
---------
* Fixes `Send + Sync` for `EvalAltResult` under the `sync` feature. Bug introduced with `0.19.3`.
New features
------------

View File

@ -25,7 +25,11 @@ use crate::stdlib::{
#[non_exhaustive]
pub enum EvalAltResult {
/// System error. Wrapped values are the error message and the internal error.
#[cfg(not(feature = "sync"))]
ErrorSystem(String, Box<dyn Error>),
/// System error. Wrapped values are the error message and the internal error.
#[cfg(feature = "sync")]
ErrorSystem(String, Box<dyn Error + Send + Sync>),
/// Syntax error.
ErrorParsing(ParseErrorType, Position),