Chore: clippy appeasement

This commit is contained in:
Kyle Simpson
2025-02-21 14:05:59 +00:00
parent 5d320a394b
commit 47cf0b27eb
9 changed files with 25 additions and 21 deletions

View File

@@ -35,7 +35,7 @@ struct AsyncAdapterSink {
impl AsyncAdapterSink {
async fn launch(mut self) {
let mut inner_buf = [0u8; 32 * 1024];
let mut inner_buf = vec![0u8; 32 * 1024].into_boxed_slice();
let mut read_region = 0..0;
let mut hit_end = false;
let mut blocked = false;

View File

@@ -192,7 +192,7 @@ impl From<YoutubeDl<'static>> for Input {
}
#[async_trait]
impl<'a> Compose for YoutubeDl<'a> {
impl Compose for YoutubeDl<'_> {
fn create(&mut self) -> Result<AudioStream<Box<dyn MediaSource>>, AudioStreamError> {
Err(AudioStreamError::Unsupported)
}