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 27b269a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/driver/tasks/mixer/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ impl BlockyTaskPool {
let pool = self.pool.read();

pool.execute(move || {
let res = input
let seek_result = input
.format
.seek(SeekMode::Coarse, copy_seek_to(&seek_time));

let backseek_needed = matches!(
res,
seek_result,
Err(SymphoniaError::SeekError(SeekErrorKind::ForwardOnly))
);

Expand All @@ -134,7 +134,7 @@ impl BlockyTaskPool {
},
_ => {
input.decoder.reset();
drop(callback.send(MixerInputResultMessage::Seek(input, rec, res)));
drop(callback.send(MixerInputResultMessage::Seek(input, rec, seek_result)));
},
}
});
Expand Down
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 27b269a

Please sign in to comment.