misc: fix some clippy errors
This commit is contained in:
+1
-1
@@ -4,5 +4,5 @@ use object::{Endianness, build::elf::Builder};
|
|||||||
|
|
||||||
#[allow(clippy::missing_const_for_fn)]
|
#[allow(clippy::missing_const_for_fn)]
|
||||||
pub fn write() {
|
pub fn write() {
|
||||||
let builder = Builder::new(Endianness::Little, false);
|
let _builder = Builder::new(Endianness::Little, false);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -180,12 +180,12 @@ impl Drop for RpcClient {
|
|||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
self.stop();
|
self.stop();
|
||||||
|
|
||||||
if let Some(handle) = self.thread_handle.take() {
|
if let Some(handle) = self.thread_handle.take()
|
||||||
if let Some(handle) = Arc::into_inner(handle) {
|
&& let Some(handle) = Arc::into_inner(handle)
|
||||||
|
{
|
||||||
let _ = handle.join();
|
let _ = handle.join();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Stub for when the feature is disabled.
|
/// Stub for when the feature is disabled.
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ pub fn run_emulator(
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
#[expect(unused_assignments)]
|
||||||
Command::Interrupt(_interrupt) => {
|
Command::Interrupt(_interrupt) => {
|
||||||
update = true;
|
update = true;
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ pub struct Processor {
|
|||||||
pub dustbin: u32,
|
pub dustbin: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[expect(dead_code)]
|
||||||
fn log(message: &str) {
|
fn log(message: &str) {
|
||||||
println!("\x1b[32mINFO:\x1b[0m {message}");
|
println!("\x1b[32mINFO:\x1b[0m {message}");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user