From 0d70be745d62fcfd0a1d19ff5f24d14689ed80f8 Mon Sep 17 00:00:00 2001 From: Mazzie Date: Wed, 27 Mar 2024 09:59:03 -0700 Subject: [PATCH] stop clippy from complaining about too many lines --- src/instruction.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/instruction.rs b/src/instruction.rs index eb033ac..c283ea3 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -1374,6 +1374,7 @@ pub mod instruction_set { Self::Fnan { .. } => 0x4F, } } + #[allow(clippy::too_many_lines)] #[must_use] pub const fn to_u32(self) -> u32 { let opcode = self.opcode(); @@ -1657,7 +1658,7 @@ pub mod instruction_set { } } impl Display for InstructionSet { - #[allow(clippy::inline_always)] + #[allow(clippy::inline_always, clippy::too_many_lines)] #[inline(always)] fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self {