From 7eecbbfbec5d0cfaafcdd2a8101ceee4efbd8b66 Mon Sep 17 00:00:00 2001 From: Serial <69764315+Serial-ATA@users.noreply.github.com> Date: Mon, 10 Jul 2023 14:35:39 -0400 Subject: [PATCH] Clippy: Fix `needless_pass_by_value` and `nonminimal_bool` --- src/iff/aiff/read.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iff/aiff/read.rs b/src/iff/aiff/read.rs index 6c28813f5..1fc2c8d59 100644 --- a/src/iff/aiff/read.rs +++ b/src/iff/aiff/read.rs @@ -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, @@ -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); }