Skip to content

Commit

Permalink
Merge pull request #89 from lenscas/bugfix/remove-dead-code
Browse files Browse the repository at this point in the history
removed dead code
  • Loading branch information
lenscas authored Jul 21, 2024
2 parents 3d889ab + 08c7414 commit 8dea1cb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/mlu/teal_data_methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ pub trait TealDataMethods<'lua, T: ToTypename> {

#[cfg(feature = "mlua_async")]
///exposes an async function to lua
fn add_async_function<S: ?Sized, A, R, F, FR>(&mut self, name: &S, function: F)
fn add_async_function<S, A, R, F, FR>(&mut self, name: &S, function: F)
where
S: AsRef<str>,
S: AsRef<str> + ?Sized,
A: FromLuaMulti<'lua> + TealMultiValue,
R: ToLuaMulti<'lua> + TealMultiValue,
F: 'static + MaybeSend + Fn(&'lua Lua, A) -> FR,
Expand Down
4 changes: 2 additions & 2 deletions src/mlu/user_data_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ where

#[cfg(feature = "mlua_async")]
#[inline(always)]
fn add_async_function<S: ?Sized, A, R, F, FR>(&mut self, name: &S, function: F)
fn add_async_function<S, A, R, F, FR>(&mut self, name: &S, function: F)
where
S: AsRef<str>,
S: AsRef<str> + ?Sized,
A: FromLuaMulti<'lua> + TealMultiValue,
R: ToLuaMulti<'lua> + TealMultiValue,
F: 'static + MaybeSend + Fn(&'lua Lua, A) -> FR,
Expand Down
6 changes: 0 additions & 6 deletions src/rlu/named_parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,3 @@ macro_rules! rlua_create_named_parameters {
}
};
}

rlua_create_named_parameters!(
TestStruct with
field_1 : String,
field_2 : i64,
);
4 changes: 2 additions & 2 deletions src/type_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -821,9 +821,9 @@ where
}

#[cfg(feature = "mlua_async")]
fn add_async_function<S: ?Sized, A, R, F, FR>(&mut self, name: &S, _: F)
fn add_async_function<S, A, R, F, FR>(&mut self, name: &S, _: F)
where
S: AsRef<str>,
S: AsRef<str> + ?Sized,
A: FromLuaMultiM<'lua> + TealMultiValue,
R: ToLuaMultiM<'lua> + TealMultiValue,
F: 'static + MaybeSend + Fn(&'lua Lua, A) -> FR,
Expand Down

0 comments on commit 8dea1cb

Please sign in to comment.