Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <ckoenig@posteo.de>
  • Loading branch information
yubiuser committed Apr 2, 2023
1 parent 1e4c324 commit f4ec772
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/src/authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ impl Credentials {
}

let res = pbkdf2::<Hmac<Sha1>>(&secret, username.as_bytes(), 0x100, &mut key[0..20]);
assert!(res.is_ok(),"Failed to create hash");

assert!(res.is_ok(), "Failed to create hash");

let hash = &Sha1::digest(&key[..20]);
key[..20].copy_from_slice(hash);
Expand Down
2 changes: 1 addition & 1 deletion playback/src/decoder/passthrough_decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl<R: Read + Seek> PassthroughDecoder<R> {
}
}

impl< R: Read + Seek> AudioDecoder for PassthroughDecoder<R> {
impl<R: Read + Seek> AudioDecoder for PassthroughDecoder<R> {
fn seek(&mut self, position_ms: u32) -> Result<u32, DecoderError> {
let absgp = (position_ms as f64 * PAGES_PER_MS) as u64;

Expand Down

0 comments on commit f4ec772

Please sign in to comment.