diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2020-12-30 01:43:00 +0000 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2020-12-31 13:39:38 +0000 |
commit | 9f82cbe0c5255de3b82971f54a3e3c4355eba351 (patch) | |
tree | 1f2da31603a70cc16818e73167edbe52ddbf9257 /src/userdata.rs | |
parent | 1a81f8d4474dbff5b30bd7e9fc62c1fe8b735196 (diff) | |
download | mlua-9f82cbe0c5255de3b82971f54a3e3c4355eba351.zip |
Update documentation
Diffstat (limited to 'src/userdata.rs')
-rw-r--r-- | src/userdata.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/userdata.rs b/src/userdata.rs index ae6ff38..a6131a1 100644 --- a/src/userdata.rs +++ b/src/userdata.rs @@ -191,6 +191,7 @@ pub trait UserDataMethods<'lua, T: UserData> { /// /// [`add_method`]: #method.add_method #[cfg(feature = "async")] + #[cfg_attr(docsrs, doc(cfg(feature = "async")))] fn add_async_method<S, A, R, M, MR>(&mut self, name: &S, method: M) where T: Clone, @@ -237,6 +238,7 @@ pub trait UserDataMethods<'lua, T: UserData> { /// /// [`add_function`]: #method.add_function #[cfg(feature = "async")] + #[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, |