summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2024-04-05 12:42:45 +0100
committerAlex Orlenko <zxteam@protonmail.com>2024-04-05 12:44:18 +0100
commita64404908786a829077760092f2ba6477b5a3575 (patch)
treee533a99e14ec37342b07ef7660fb060209f4ace0
parentad31bed1db761503d6b3e0e3df292548449ad0ff (diff)
downloadmlua-a64404908786a829077760092f2ba6477b5a3575.zip
Cosmetic changes for clippy
-rw-r--r--src/conversion.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/conversion.rs b/src/conversion.rs
index dc12c0b..f13b35a 100644
--- a/src/conversion.rs
+++ b/src/conversion.rs
@@ -103,7 +103,8 @@ impl<'lua> IntoLua<'lua> for &OwnedString {
#[inline]
unsafe fn push_into_stack(self, lua: &'lua Lua) -> Result<()> {
- Ok(lua.push_owned_ref(&self.0))
+ lua.push_owned_ref(&self.0);
+ Ok(())
}
}
@@ -169,7 +170,8 @@ impl<'lua> IntoLua<'lua> for &OwnedTable {
#[inline]
unsafe fn push_into_stack(self, lua: &'lua Lua) -> Result<()> {
- Ok(lua.push_owned_ref(&self.0))
+ lua.push_owned_ref(&self.0);
+ Ok(())
}
}
@@ -235,7 +237,8 @@ impl<'lua> IntoLua<'lua> for &OwnedFunction {
#[inline]
unsafe fn push_into_stack(self, lua: &'lua Lua) -> Result<()> {
- Ok(lua.push_owned_ref(&self.0))
+ lua.push_owned_ref(&self.0);
+ Ok(())
}
}
@@ -301,7 +304,8 @@ impl<'lua> IntoLua<'lua> for &OwnedThread {
#[inline]
unsafe fn push_into_stack(self, lua: &'lua Lua) -> Result<()> {
- Ok(lua.push_owned_ref(&self.0))
+ lua.push_owned_ref(&self.0);
+ Ok(())
}
}
@@ -370,7 +374,8 @@ impl<'lua> IntoLua<'lua> for &OwnedAnyUserData {
#[inline]
unsafe fn push_into_stack(self, lua: &'lua Lua) -> Result<()> {
- Ok(lua.push_owned_ref(&self.0))
+ lua.push_owned_ref(&self.0);
+ Ok(())
}
}