Skip to content

Commit

Permalink
refactor: remove unnecessary casting (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal authored Mar 18, 2024
1 parent 1d3a37a commit f88a759
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/decoder/flac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ where
Ordering::Equal => raw_val as i16,
Ordering::Greater => (raw_val >> (self.bits_per_sample - 16)) as i16,
};
return Some(real_val as i16);
return Some(real_val);
}

// Load the next block.
Expand Down
2 changes: 1 addition & 1 deletion src/source/skip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ where
return;
}

skip_samples(input, frame_len as usize);
skip_samples(input, frame_len);

duration -= Duration::from_nanos((frame_len * ns_per_sample as usize) as u64);
}
Expand Down

0 comments on commit f88a759

Please sign in to comment.