Skip to content

Commit

Permalink
lint: fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
XMLHexagram committed Dec 3, 2024
1 parent 8daa3df commit 2d1e083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analysis/src/shared_utils/audio_metadata_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ pub fn get_codec_information(track: &Track) -> Result<(u32, f64), symphonia::cor
let sample_rate = track
.codec_params
.sample_rate
.ok_or_else(|| symphonia::core::errors::Error::Unsupported("No sample rate found"))?;
.ok_or(symphonia::core::errors::Error::Unsupported("No sample rate found"))?;
let duration = track
.codec_params
.n_frames
.ok_or_else(|| symphonia::core::errors::Error::Unsupported("No duration found"))?;
.ok_or(symphonia::core::errors::Error::Unsupported("No duration found"))?;

let time_base = track
.codec_params
Expand Down

0 comments on commit 2d1e083

Please sign in to comment.