Skip to content

Commit

Permalink
Cosmetic changes for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Apr 5, 2024
1 parent ad31bed commit a644049
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
}

Expand Down Expand Up @@ -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(())
}
}

Expand Down Expand Up @@ -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(())
}
}

Expand Down Expand Up @@ -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(())
}
}

Expand Down Expand Up @@ -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(())
}
}

Expand Down

0 comments on commit a644049

Please sign in to comment.