From c8817d8eb3b6a7ec723fc6ae0624430c0848bda2 Mon Sep 17 00:00:00 2001 From: Matthias Goergens Date: Tue, 18 Jul 2023 19:02:17 +0800 Subject: [PATCH] chore: make clippy happy --- assembly/src/assembler/span_builder.rs | 2 +- assembly/src/library/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assembly/src/assembler/span_builder.rs b/assembly/src/assembler/span_builder.rs index a711e24c29..44aadfdf0b 100644 --- a/assembly/src/assembler/span_builder.rs +++ b/assembly/src/assembler/span_builder.rs @@ -98,7 +98,7 @@ impl SpanBuilder { /// /// This indicates that the provided instruction should be tracked and the cycle count for /// this instruction will be computed when the call to set_instruction_cycle_count() is made. - pub fn track_instruction(&mut self, instruction: &Instruction, ctx: &mut AssemblyContext) { + pub fn track_instruction(&mut self, instruction: &Instruction, ctx: &AssemblyContext) { let context_name = ctx.current_context_name().to_string(); let num_cycles = 0; let op = instruction.to_string(); diff --git a/assembly/src/library/mod.rs b/assembly/src/library/mod.rs index c5b1ee4be0..e74809bfc1 100644 --- a/assembly/src/library/mod.rs +++ b/assembly/src/library/mod.rs @@ -152,7 +152,7 @@ impl Module { impl PartialOrd for Module { fn partial_cmp(&self, other: &Self) -> Option { - self.path.partial_cmp(&other.path) + Some(self.cmp(other)) } }