Skip to content

Commit

Permalink
Fix clippy linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
buinauskas committed Feb 19, 2024
1 parent 1ab31a9 commit 08c3548
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/http_relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Relay for HttpRelay {
request = request.header("X-Debug-Pin", debug_pin);
}

let _ = tokio::spawn(async move {
let result = tokio::spawn(async move {
let response = match request.send().await {
Ok(response) => response,
Err(error) => {
Expand All @@ -58,5 +58,7 @@ impl Relay for HttpRelay {
}
}
});

drop(result);
}
}
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
#![deny(
warnings,
bad_style,
const_err,
dead_code,
improper_ctypes,
non_shorthand_field_patterns,
no_mangle_generic_items,
overflowing_literals,
path_statements,
patterns_in_fns_without_body,
private_in_public,
unconditional_recursion,
unused,
unused_allocation,
Expand Down
4 changes: 3 additions & 1 deletion src/udp_relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ impl Relay for UdpRelay {
fn transport(&self, _: Metadata, serialized_event: Vec<u8>) {
let udp_socket = self.udp_socket.clone();

let _ = tokio::spawn(async move { udp_socket.send(&serialized_event).await });
let result = tokio::spawn(async move { udp_socket.send(&serialized_event).await });

drop(result);
}
}

Expand Down

0 comments on commit 08c3548

Please sign in to comment.