From 65213bb0fb6a7080a80601ce5502f574b5d859ae Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Fri, 29 Dec 2023 12:54:46 +0100 Subject: [PATCH] fix: its the same --- src/voice/udp/handle.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/voice/udp/handle.rs b/src/voice/udp/handle.rs index e597f11..7b2cca9 100644 --- a/src/voice/udp/handle.rs +++ b/src/voice/udp/handle.rs @@ -46,7 +46,7 @@ impl UdpHandle { payload: Vec, ) -> Result<(), VoiceUdpError> { let voice_ready_data_result = self.data.read().await.ready_data.clone(); - if let None = voice_ready_data_result { + if voice_ready_data_result.is_none() { return Err(VoiceUdpError::NoData); }