Skip to content

Commit

Permalink
fix: new clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Jul 18, 2023
1 parent 09186fd commit a7c35cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assembly/src/assembler/span_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion assembly/src/library/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl Module {

impl PartialOrd for Module {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.path.partial_cmp(&other.path)
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit a7c35cc

Please sign in to comment.