Skip to content

Commit 1b109f5

Browse files
cyrganinot-fl3
authored andcommitted
add #[must_use] to next_frame()
1 parent 9901536 commit 1b109f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/window.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub use miniquad;
1010
pub use miniquad::conf::Conf;
1111

1212
/// Block execution until the next frame.
13+
#[must_use = "use `next_frame().await` to advance to the next frame"]
1314
pub fn next_frame() -> crate::exec::FrameFuture {
1415
crate::thread_assert::same_thread();
1516
crate::exec::FrameFuture::default()

0 commit comments

Comments
 (0)