chore: add actual reason for sendableoutputstream allowing non send fields

This commit is contained in:
talwat 2025-02-21 21:46:41 +01:00
parent ece88de1ae
commit f0123fd2bc

View File

@ -86,7 +86,7 @@ pub struct SendableOutputStream(pub rodio::OutputStream);
// SAFETY: This is necessary because [OutputStream] does not implement [Send],
// due to some limitation with Android's Audio API.
// I'm pretty sure nobody will use lowfi with android, so this is safe.
#[expect(clippy::non_send_fields_in_send_ty, reason = "yes")]
#[expect(clippy::non_send_fields_in_send_ty, reason = "this is expected because of the nature of the struct")]
unsafe impl Send for SendableOutputStream {}
/// Initializes the audio server, and then safely stops