From 6bbd95ed8388d89d6c0d632f007800044db2a5b5 Mon Sep 17 00:00:00 2001 From: apolunar Date: Sat, 1 Jun 2024 21:00:10 -0500 Subject: [PATCH] fix clippy complaint that the struct is overdeclared --- src/decoder/symphonia.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/decoder/symphonia.rs b/src/decoder/symphonia.rs index 02bcf46..859af6d 100644 --- a/src/decoder/symphonia.rs +++ b/src/decoder/symphonia.rs @@ -2,7 +2,7 @@ use std::time::Duration; use symphonia::{ core::{ audio::{AudioBufferRef, SampleBuffer, SignalSpec}, - codecs::{Decoder, DecoderOptions, CODEC_TYPE_NULL}, + codecs::{Decoder, CODEC_TYPE_NULL}, errors::Error, formats::{FormatOptions, FormatReader, SeekedTo}, io::MediaSourceStream, @@ -81,8 +81,7 @@ impl SymphoniaDecoder { .iter() .find(|t| t.codec_params.codec != CODEC_TYPE_NULL).unwrap().id; - let decode_opts = - DecoderOptions { verify: false, ..Default::default() }; + let decode_opts = Default::default(); let track = probed.format.tracks().iter().find(|track| track.id == track_id).unwrap();