From d6a8f0d007ef26806a2c2e20f62d23357fad7ae9 Mon Sep 17 00:00:00 2001 From: Jeron Aldaron Lau Date: Sun, 13 Oct 2024 20:40:11 -0500 Subject: [PATCH] Fix errors --- src/audio.rs | 3 ++- src/stream/speex.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/audio.rs b/src/audio.rs index eb4c9ef..845ecd5 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -10,7 +10,8 @@ use alloc::{ boxed::Box, slice::{Iter, IterMut}, - vec::{self, Vec}, + vec, + vec::Vec, }; use core::{ convert::TryInto, fmt::Debug, mem::size_of, num::NonZeroU32, diff --git a/src/stream/speex.rs b/src/stream/speex.rs index 9657f4c..e9e4bf2 100644 --- a/src/stream/speex.rs +++ b/src/stream/speex.rs @@ -1,7 +1,7 @@ // FIXME: Once remove macros, can delete #![allow(trivial_casts, trivial_numeric_casts)] -use alloc::vec::{self, Vec}; +use alloc::{vec, vec::Vec}; use core::{f64::consts::PI, mem}; #[cfg(not(test))]