🚨 clippy warnings
parent
63f9dcef97
commit
bfb96e2475
|
@ -195,10 +195,10 @@ fn main () -> anyhow::Result <()> {
|
||||||
while app.wait () {
|
while app.wait () {
|
||||||
match fltk_rx.recv () {
|
match fltk_rx.recv () {
|
||||||
Some (Message::OpenPort (port_idx)) => {
|
Some (Message::OpenPort (port_idx)) => {
|
||||||
match gui_client.open_port (connection_p2_p3.clone (), port_idx) {
|
if let Err (e) = gui_client.open_port (connection_p2_p3.clone (), port_idx)
|
||||||
Err (e) => error! ("{:?}", e),
|
{
|
||||||
_ => (),
|
error! ("{:?}", e);
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
Some (Message::ClosePort (port_idx)) => {
|
Some (Message::ClosePort (port_idx)) => {
|
||||||
gui_client.close_port (port_idx)?;
|
gui_client.close_port (port_idx)?;
|
||||||
|
|
|
@ -36,9 +36,8 @@ impl ForwardingInstance {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn close (self) -> anyhow::Result <()> {
|
pub async fn close (self) -> anyhow::Result <()> {
|
||||||
match self.shutdown_flag.send (false) {
|
if self.shutdown_flag.send (false).is_err () {
|
||||||
Err (_) => warn! ("Trying to gracefully shutdown forwarding task but it appears to already be shut down"),
|
warn! ("Trying to gracefully shutdown forwarding task but it appears to already be shut down");
|
||||||
_ => (),
|
|
||||||
}
|
}
|
||||||
self.task.await
|
self.task.await
|
||||||
.context ("awaiting ForwardingInstance task")?
|
.context ("awaiting ForwardingInstance task")?
|
||||||
|
|
Loading…
Reference in New Issue