diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2021-06-03 23:21:00 +0100 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2021-06-03 23:21:00 +0100 |
commit | abb95c3c56aaf9b084dd5e6d01f8147554c8a0bd (patch) | |
tree | efadc8fd491722e53f8ef708b21dc3af6725bafb /src/userdata.rs | |
parent | 64faebf4079e9e786e81c440fc8e20ec9939b2ee (diff) | |
download | mlua-abb95c3c56aaf9b084dd5e6d01f8147554c8a0bd.zip |
Remove `T: Clone` requirement from `add_async_function`
Diffstat (limited to 'src/userdata.rs')
-rw-r--r-- | src/userdata.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/userdata.rs b/src/userdata.rs index 1decf1a..d9e75d3 100644 --- a/src/userdata.rs +++ b/src/userdata.rs @@ -359,7 +359,6 @@ pub trait UserDataMethods<'lua, T: UserData> { #[cfg_attr(docsrs, doc(cfg(feature = "async")))] fn add_async_function<S, A, R, F, FR>(&mut self, name: &S, function: F) where - T: Clone, S: AsRef<[u8]> + ?Sized, A: FromLuaMulti<'lua>, R: ToLuaMulti<'lua>, |