Skip to content

Commit c0c8022

Browse files
committed
Add must_use to AsyncCallFuture
1 parent dda344b commit c0c8022

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/function.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ impl LuaType for Function {
642642
}
643643

644644
#[cfg(feature = "async")]
645+
#[must_use = "futures do nothing unless you `.await` or poll them"]
645646
pub struct AsyncCallFuture<R: FromLuaMulti>(Result<AsyncThread<R>>);
646647

647648
#[cfg(feature = "async")]

0 commit comments

Comments
 (0)