Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request tomaka#136 from jonas-schievink/patch-1
Browse files Browse the repository at this point in the history
Remove unnecessary FnMut bound
  • Loading branch information
tomaka authored Apr 2, 2017
2 parents cd65a83 + ca3dc2d commit 449e3c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hlua/src/userdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ extern "C" fn destructor_wrapper<T>(lua: *mut ffi::lua_State) -> libc::c_int {
/// - `metatable`: Function that fills the metatable of the object.
///
#[inline]
pub fn push_userdata<'lua, L, T, F>(data: T, mut lua: L, mut metatable: F) -> PushGuard<L>
where F: FnMut(LuaTable<&mut PushGuard<&mut L>>),
pub fn push_userdata<'lua, L, T, F>(data: T, mut lua: L, metatable: F) -> PushGuard<L>
where F: FnOnce(LuaTable<&mut PushGuard<&mut L>>),
L: AsMutLua<'lua>,
T: Send + 'static + Any
{
Expand Down

0 comments on commit 449e3c0

Please sign in to comment.