mirror of
https://github.com/RustAudio/rodio
synced 2024-11-10 06:04:16 +00:00
fix clippy complaint that the struct is overdeclared
This commit is contained in:
parent
d08d9e71a6
commit
6bbd95ed83
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue