Added must use to stream. Fixes issue #589 (#772)

This commit is contained in:
Easyoakland
2023-04-04 02:36:28 +00:00
committed by GitHub
parent 2cae7b4323
commit 848abf256f

View File

@@ -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