Fix Send+Sync for EvalAltResult.
This commit is contained in:
parent
65432330c4
commit
f670d55871
@ -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
|
||||
------------
|
||||
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user