misc: fix some clippy errors

This commit is contained in:
2025-06-24 22:15:51 +01:00
parent ebae99811b
commit 65efa8d423
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -4,5 +4,5 @@ use object::{Endianness, build::elf::Builder};
#[allow(clippy::missing_const_for_fn)]
pub fn write() {
let builder = Builder::new(Endianness::Little, false);
let _builder = Builder::new(Endianness::Little, false);
}
+4 -4
View File
@@ -180,10 +180,10 @@ impl Drop for RpcClient {
fn drop(&mut self) {
self.stop();
if let Some(handle) = self.thread_handle.take() {
if let Some(handle) = Arc::into_inner(handle) {
let _ = handle.join();
}
if let Some(handle) = self.thread_handle.take()
&& let Some(handle) = Arc::into_inner(handle)
{
let _ = handle.join();
}
}
}
+1
View File
@@ -110,6 +110,7 @@ pub fn run_emulator(
);
});
}
#[expect(unused_assignments)]
Command::Interrupt(_interrupt) => {
update = true;
@@ -19,6 +19,7 @@ pub struct Processor {
pub dustbin: u32,
}
#[expect(dead_code)]
fn log(message: &str) {
println!("\x1b[32mINFO:\x1b[0m {message}");
}