From 13dc68c36d73bf64e52568cc63a6dc0af0131ce0 Mon Sep 17 00:00:00 2001 From: kyren Date: Sat, 9 Sep 2017 21:29:22 -0400 Subject: [PATCH] Rename 'lua lifetimes to actually be 'lua --- src/lua.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lua.rs b/src/lua.rs index 03314b6..13db4e7 100644 --- a/src/lua.rs +++ b/src/lua.rs @@ -69,15 +69,15 @@ impl<'lua> Value<'lua> { } /// Trait for types convertible to `Value`. -pub trait ToLua<'a> { +pub trait ToLua<'lua> { /// Performs the conversion. - fn to_lua(self, lua: &'a Lua) -> Result>; + fn to_lua(self, lua: &'lua Lua) -> Result>; } /// Trait for types convertible from `Value`. -pub trait FromLua<'a>: Sized { +pub trait FromLua<'lua>: Sized { /// Performs the conversion. - fn from_lua(lua_value: Value<'a>, lua: &'a Lua) -> Result; + fn from_lua(lua_value: Value<'lua>, lua: &'lua Lua) -> Result; } /// Multiple Lua values used for both argument passing and also for multiple return values. @@ -123,23 +123,23 @@ impl<'lua> DerefMut for MultiValue<'lua> { /// /// This is a generalization of `ToLua`, allowing any number of resulting Lua values instead of just /// one. Any type that implements `ToLua` will automatically implement this trait. -pub trait ToLuaMulti<'a> { +pub trait ToLuaMulti<'lua> { /// Performs the conversion. - fn to_lua_multi(self, lua: &'a Lua) -> Result>; + fn to_lua_multi(self, lua: &'lua Lua) -> Result>; } /// Trait for types that can be created from an arbitrary number of Lua values. /// /// This is a generalization of `FromLua`, allowing an arbitrary number of Lua values to participate /// in the conversion. Any type that implements `FromLua` will automatically implement this trait. -pub trait FromLuaMulti<'a>: Sized { +pub trait FromLuaMulti<'lua>: Sized { /// Performs the conversion. /// /// In case `values` contains more values than needed to perform the conversion, the excess /// values should be ignored. This reflects the semantics of Lua when calling a function or /// assigning values. Similarly, if not enough values are given, conversions should assume that /// any missing values are nil. - fn from_lua_multi(values: MultiValue<'a>, lua: &'a Lua) -> Result; + fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result; } type Callback<'lua> = Box) -> Result> + 'lua>;