From 0db495d66f291ed75ebb7724e0850a3dce6fa1bc Mon Sep 17 00:00:00 2001 From: Pedro de Oliveira Date: Sun, 23 Apr 2023 00:17:41 +0100 Subject: [PATCH] Shut up clippy. --- src/voc/blocks.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/voc/blocks.rs b/src/voc/blocks.rs index a15daa8..c6d0890 100644 --- a/src/voc/blocks.rs +++ b/src/voc/blocks.rs @@ -53,6 +53,7 @@ pub struct Terminator { } impl Terminator { + #[cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))] pub fn new() -> Self { Self { info: None, block_type: BlockType::Terminator } } pub fn from_stream(_fp: &mut File, start_address: u32, end_address: u32) -> Self { @@ -448,6 +449,7 @@ pub struct RepeatEnd { } impl RepeatEnd { + #[cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))] pub fn new() -> Self { Self { info: None, block_type: BlockType::RepeatEnd } } pub fn from_stream(_fp: &mut File, start_address: u32, end_address: u32) -> Self { Self {