Skip to content

Commit

Permalink
Fix clippy::similar_names
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Jun 9, 2022
1 parent eb61f32 commit 3355373
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/input/adapters/cached/compressed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ fn create_metadata(
Bitrate::Max => Some(510_000),
};

let vbr = opus.vbr()?;

let mode = match opus.application()? {
Application::Voip => "voip",
Application::Audio => "music",
Expand All @@ -259,7 +257,7 @@ fn create_metadata(
sample_rate,
frame_size: MONO_FRAME_BYTE_SIZE as u64,
abr,
vbr,
vbr: opus.vbr()?,
channels: channels.min(2),
};

Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
clippy::if_not_else,
clippy::unnested_or_patterns,
clippy::single_match_else,
clippy::mut_mut
clippy::mut_mut,
clippy::similar_names
)]

mod config;
Expand Down

0 comments on commit 3355373

Please sign in to comment.