Skip to content

Commit 76823d1

Browse files
committed
Clippy: Promote field_reassign_with_default to global allow list
1 parent b2a604e commit 76823d1

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
clippy::uninlined_format_args, /* This should be changed for any normal "{}", but I'm not a fan of it for any debug or width specific formatting */
136136
clippy::manual_let_else,
137137
clippy::let_underscore_untyped,
138+
clippy::field_reassign_with_default,
138139
)]
139140
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
140141

src/musepack/sv7/properties.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ impl MpcSv7Properties {
266266
self.encoder_version
267267
}
268268

269-
#[allow(clippy::field_reassign_with_default)]
270269
pub(crate) fn read<R>(reader: &mut R, stream_length: u64) -> Result<Self>
271270
where
272271
R: Read,

src/musepack/sv8/properties.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl StreamHeader {
137137
let ms_used = remaining_flags_byte_2 & 0x08 == 0x08;
138138

139139
let audio_block_frames_value = remaining_flags_byte_2 & 0x07;
140-
let audio_block_frames = 4u16.pow(audio_block_frames_value as u32);
140+
let audio_block_frames = 4u16.pow(u32::from(audio_block_frames_value));
141141

142142
Ok(Self {
143143
crc,

0 commit comments

Comments
 (0)