Clippy fixes

This commit is contained in:
2025-12-05 00:11:13 +01:00
parent 5f57bd8668
commit 6d601482f5

View File

@@ -233,12 +233,9 @@ impl InstanceHandle {
break;
}
maybe_cmd = stdin_rx.recv() => {
match maybe_cmd {
Some(cmd) => {
if let Some(cmd) = maybe_cmd {
_ = writer.write_all(cmd.as_bytes()).await;
_ = writer.flush().await;
},
_ => (),
}
}
}
@@ -269,22 +266,14 @@ impl InstanceHandle {
break;
}
line = rx.next() => {
match line {
Some(Ok(val)) => {
if let Some(Ok(val)) = line {
let msg = val.msg();
let meta = LogMeta::new(msg);
match meta {
Ok(val) => {
if val.is_some() {
if let Ok(val) = meta
&& val.is_some() {
println!("{}", val.unwrap());
}
}
Err(_) => (),
}
},
_ => (),
}
}
}
}