Skip to content

Commit

Permalink
Clippy: Fix needless_pass_by_value and nonminimal_bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA committed Jul 10, 2023
1 parent c3c0178 commit 7eecbbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iff/aiff/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::io::{Read, Seek, SeekFrom};
use byteorder::{BigEndian, ReadBytesExt};

/// Whether we are dealing with an AIFC file
#[derive(Eq, PartialEq)]
#[derive(Copy, Clone, Eq, PartialEq)]
pub(in crate::iff) enum CompressionPresent {
Yes,
No,
Expand All @@ -25,7 +25,7 @@ where
let mut id = [0; 12];
data.read_exact(&mut id)?;

if !(&id[..4] == b"FORM") {
if &id[..4] != b"FORM" {
err!(UnknownFormat);
}

Expand Down

0 comments on commit 7eecbbf

Please sign in to comment.