Add `must_use` to `AsyncThread`

This commit is contained in:
Alex Orlenko 2023-04-05 00:23:13 +01:00
parent 354c69acc4
commit 483bc80fc4
No known key found for this signature in database
GPG Key ID: 4C150C250863B96D
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ pub struct Thread<'lua>(pub(crate) LuaRef<'lua>);
/// [`Stream`]: futures_core::stream::Stream
#[cfg(feature = "async")]
#[cfg_attr(docsrs, doc(cfg(feature = "async")))]
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct AsyncThread<'lua, R> {
thread: Thread<'lua>,
args0: Option<Result<MultiValue<'lua>>>,