summaryrefslogtreecommitdiff
path: root/src/value.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2022-12-19 11:37:40 +0000
committerAlex Orlenko <zxteam@protonmail.com>2022-12-19 16:09:05 +0000
commit9b4e3a1598bd95908b33c0a4052fa9563523cee6 (patch)
tree62e6463fb03cd1fe1c39bb5cca8459d3b87b9835 /src/value.rs
parent0aa30226df129a7c7497723ea5f3c3985c7377f5 (diff)
downloadmlua-9b4e3a1598bd95908b33c0a4052fa9563523cee6.zip
Refactor LuaInner state
Add static_assertions to check for auto traits impl on compilation stage Bump MSRV to 1.63 (required for `Ref::filter_map`)
Diffstat (limited to 'src/value.rs')
-rw-r--r--src/value.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/value.rs b/src/value.rs
index eb184d4..8d90b62 100644
--- a/src/value.rs
+++ b/src/value.rs
@@ -357,3 +357,11 @@ pub trait FromLuaMulti<'lua>: Sized {
/// any missing values are nil.
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<Self>;
}
+
+#[cfg(test)]
+mod assertions {
+ use super::*;
+
+ static_assertions::assert_not_impl_any!(Value: Send);
+ static_assertions::assert_not_impl_any!(MultiValue: Send);
+}