Skip to content

Commit a644049

Browse files
committed
Cosmetic changes for clippy
1 parent ad31bed commit a644049

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/conversion.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ impl<'lua> IntoLua<'lua> for &OwnedString {
103103

104104
#[inline]
105105
unsafe fn push_into_stack(self, lua: &'lua Lua) -> Result<()> {
106-
Ok(lua.push_owned_ref(&self.0))
106+
lua.push_owned_ref(&self.0);
107+
Ok(())
107108
}
108109
}
109110

@@ -169,7 +170,8 @@ impl<'lua> IntoLua<'lua> for &OwnedTable {
169170

170171
#[inline]
171172
unsafe fn push_into_stack(self, lua: &'lua Lua) -> Result<()> {
172-
Ok(lua.push_owned_ref(&self.0))
173+
lua.push_owned_ref(&self.0);
174+
Ok(())
173175
}
174176
}
175177

@@ -235,7 +237,8 @@ impl<'lua> IntoLua<'lua> for &OwnedFunction {
235237

236238
#[inline]
237239
unsafe fn push_into_stack(self, lua: &'lua Lua) -> Result<()> {
238-
Ok(lua.push_owned_ref(&self.0))
240+
lua.push_owned_ref(&self.0);
241+
Ok(())
239242
}
240243
}
241244

@@ -301,7 +304,8 @@ impl<'lua> IntoLua<'lua> for &OwnedThread {
301304

302305
#[inline]
303306
unsafe fn push_into_stack(self, lua: &'lua Lua) -> Result<()> {
304-
Ok(lua.push_owned_ref(&self.0))
307+
lua.push_owned_ref(&self.0);
308+
Ok(())
305309
}
306310
}
307311

@@ -370,7 +374,8 @@ impl<'lua> IntoLua<'lua> for &OwnedAnyUserData {
370374

371375
#[inline]
372376
unsafe fn push_into_stack(self, lua: &'lua Lua) -> Result<()> {
373-
Ok(lua.push_owned_ref(&self.0))
377+
lua.push_owned_ref(&self.0);
378+
Ok(())
374379
}
375380
}
376381

0 commit comments

Comments
 (0)