Skip to content

Commit

Permalink
🧹 Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Philogy committed Sep 1, 2024
1 parent b9c72d4 commit ca58a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/assembler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl MarkMap {
panic!("Reference to nonexistent mark {} at index {}", id, index)
};

#[cfg(not(feature = "sanity-checks"))]
Default::default()
})
}
Expand Down Expand Up @@ -174,8 +175,7 @@ pub fn assemble_minimized(asm: &[Asm]) -> Vec<u8> {
}

fn value_to_ref_extra_bytes(value: usize) -> u8 {
let out = value.checked_ilog2().unwrap_or_default() as u8 / 8 + 1;
out
value.checked_ilog2().unwrap_or_default() as u8 / 8 + 1
}

#[cfg(test)]
Expand Down
1 change: 0 additions & 1 deletion src/assembly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ impl fmt::Display for Asm {
write!(f, "({})", ref_type)
}
}
_ => write!(f, "{:?}", self),
}
}
}
Expand Down

0 comments on commit ca58a21

Please sign in to comment.