Shut up clippy.

This commit is contained in:
Pedro de Oliveira 2023-04-23 00:17:41 +01:00
parent 9bf1197fa1
commit 0db495d66f
1 changed files with 2 additions and 0 deletions

View File

@ -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 {