summaryrefslogtreecommitdiff
path: root/src/conversion.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2020-04-17 22:38:01 +0100
committerAlex Orlenko <zxteam@protonmail.com>2020-04-17 22:39:50 +0100
commit47e8a80c1cbc6b76a341029df5555aa098ce4816 (patch)
tree9ebadb5f90b28e10647e4ac68e3d1fd2965a8791 /src/conversion.rs
parent1a788c48f1612ac4a803f644f7285688ed97864a (diff)
downloadmlua-47e8a80c1cbc6b76a341029df5555aa098ce4816.zip
v0.3.0-alpha.1 with async support
Squashed commit of the async branch.
Diffstat (limited to 'src/conversion.rs')
-rw-r--r--src/conversion.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conversion.rs b/src/conversion.rs
index 3116c58..51c6efd 100644
--- a/src/conversion.rs
+++ b/src/conversion.rs
@@ -122,7 +122,7 @@ impl<'lua> FromLua<'lua> for AnyUserData<'lua> {
}
}
-impl<'lua, T: 'static + Send + UserData> ToLua<'lua> for T {
+impl<'lua, T: 'static + UserData> ToLua<'lua> for T {
fn to_lua(self, lua: &'lua Lua) -> Result<Value<'lua>> {
Ok(Value::UserData(lua.create_userdata(self)?))
}
@@ -167,7 +167,7 @@ impl<'lua> ToLua<'lua> for bool {
}
impl<'lua> FromLua<'lua> for bool {
- fn from_lua(v: Value, _: &'lua Lua) -> Result<Self> {
+ fn from_lua(v: Value<'lua>, _: &'lua Lua) -> Result<Self> {
match v {
Value::Nil => Ok(false),
Value::Boolean(b) => Ok(b),
@@ -183,7 +183,7 @@ impl<'lua> ToLua<'lua> for LightUserData {
}
impl<'lua> FromLua<'lua> for LightUserData {
- fn from_lua(value: Value, _: &'lua Lua) -> Result<Self> {
+ fn from_lua(value: Value<'lua>, _: &'lua Lua) -> Result<Self> {
match value {
Value::LightUserData(ud) => Ok(ud),
_ => Err(Error::FromLuaConversionError {