Skip to content

Commit

Permalink
stop clippy from complaining about too many lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mazziechai committed Mar 27, 2024
1 parent 1217eca commit 0d70be7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 0d70be7

Please sign in to comment.