From d496cf01a552ab161630c42ef97248be509bd634 Mon Sep 17 00:00:00 2001 From: kozabrada123 <59031733+kozabrada123@users.noreply.github.com> Date: Fri, 12 Jan 2024 17:00:24 +0100 Subject: [PATCH] chore: unused imports --- src/voice/crypto.rs | 2 -- src/voice/udp/handle.rs | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/voice/crypto.rs b/src/voice/crypto.rs index 7657383..995a26b 100644 --- a/src/voice/crypto.rs +++ b/src/voice/crypto.rs @@ -2,8 +2,6 @@ //! //! All functions in this module return a 24 byte long [Vec]. -use crypto_secretbox::cipher::typenum::Len; - /// Gets an xsalsa20_poly1305 nonce from an rtppacket. /// /// See diff --git a/src/voice/udp/handle.rs b/src/voice/udp/handle.rs index 87550d3..1fab085 100644 --- a/src/voice/udp/handle.rs +++ b/src/voice/udp/handle.rs @@ -15,10 +15,7 @@ use super::UdpSocket; use crate::{ errors::VoiceUdpError, types::VoiceEncryptionMode, - voice::{ - crypto::{self, get_xsalsa20_poly1305_nonce}, - voice_data::VoiceData, - }, + voice::{crypto::get_xsalsa20_poly1305_nonce, voice_data::VoiceData}, }; use super::{events::VoiceUDPEvents, RTP_HEADER_SIZE};