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 {