diff --git a/src/http_relay.rs b/src/http_relay.rs index 763036c..d30a981 100644 --- a/src/http_relay.rs +++ b/src/http_relay.rs @@ -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) => { @@ -58,5 +58,7 @@ impl Relay for HttpRelay { } } }); + + drop(result); } } diff --git a/src/lib.rs b/src/lib.rs index 8067662..e0a6771 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,6 @@ #![deny( warnings, bad_style, - const_err, dead_code, improper_ctypes, non_shorthand_field_patterns, @@ -10,7 +9,6 @@ overflowing_literals, path_statements, patterns_in_fns_without_body, - private_in_public, unconditional_recursion, unused, unused_allocation, diff --git a/src/udp_relay.rs b/src/udp_relay.rs index d710c7b..d3ff2fe 100644 --- a/src/udp_relay.rs +++ b/src/udp_relay.rs @@ -50,7 +50,9 @@ impl Relay for UdpRelay { fn transport(&self, _: Metadata, serialized_event: Vec) { 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); } }