From 848abf256fcedf05a05515b3570adc507859cf25 Mon Sep 17 00:00:00 2001 From: Easyoakland <97992568+Easyoakland@users.noreply.github.com> Date: Tue, 4 Apr 2023 02:36:28 +0000 Subject: [PATCH] Added must use to stream. Fixes issue #589 (#772) --- src/platform/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform/mod.rs b/src/platform/mod.rs index 3b566f1..1446a41 100644 --- a/src/platform/mod.rs +++ b/src/platform/mod.rs @@ -68,6 +68,7 @@ macro_rules! impl_platform_host { // functions within the callback. // // TODO: Confirm this and add more specific detail and references. + #[must_use = "If the stream is not stored it will not play."] pub struct Stream(StreamInner, crate::platform::NotSendSyncAcrossAllPlatforms); /// The `SupportedInputConfigs` iterator associated with the platform's dynamically