mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
Support multi threads under send feature flag
This commit is contained in:
+8
-5
@@ -202,9 +202,12 @@ impl Serialize for String {
|
||||
}
|
||||
}
|
||||
|
||||
// #[cfg(test)]
|
||||
// mod assertions {
|
||||
// use super::*;
|
||||
#[cfg(test)]
|
||||
mod assertions {
|
||||
use super::*;
|
||||
|
||||
// static_assertions::assert_not_impl_any!(String: Send);
|
||||
// }
|
||||
#[cfg(not(feature = "send"))]
|
||||
static_assertions::assert_not_impl_any!(String: Send);
|
||||
#[cfg(feature = "send")]
|
||||
static_assertions::assert_impl_all!(String: Send, Sync);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user