true/false don't need to be explicit

Co-authored-by: Johannesd3 <51954457+Johannesd3@users.noreply.github.com>
This commit is contained in:
philippe44 2021-03-20 12:11:49 -07:00 committed by GitHub
parent 8dc1e80633
commit 86dbaa8ed5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ impl<R: Read + Seek> AudioDecoder for PassthroughDecoder<R> {
info!("Seeking to {}", ms); info!("Seeking to {}", ms);
// add an eos to previous stream if missing // add an eos to previous stream if missing
if self.bos == true && self.eos == false { if self.bos && !self.eos {
match self.rdr.read_packet() { match self.rdr.read_packet() {
Ok(Some(pck)) => { Ok(Some(pck)) => {
let absgp_page = pck.absgp_page() - self.ofsgp_page; let absgp_page = pck.absgp_page() - self.ofsgp_page;