Skip to content

Commit

Permalink
fix(clippy): unused variable with tracing disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Totodore committed Oct 25, 2023
1 parent a17753a commit cd3cdb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions engineioxide/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ where
tracing::debug!("error parsing request: {:?}", e);
ResponseFuture::ready(Ok(e.into()))
}
req => {
_req => {
#[cfg(feature = "tracing")]
tracing::debug!("invalid request: {:?}", req);
tracing::debug!("invalid request: {:?}", _req);
ResponseFuture::empty_response(400)
}
}
Expand Down
4 changes: 2 additions & 2 deletions socketioxide/src/ns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ impl<A: Adapter> Namespace<A> {
self.sockets.write().unwrap().insert(sid, socket.clone());

let protocol = esocket.protocol.into();
if let Err(e) = socket.send(Packet::connect(self.path.clone(), socket.id, protocol)) {
if let Err(_e) = socket.send(Packet::connect(self.path.clone(), socket.id, protocol)) {
#[cfg(feature = "tracing")]
tracing::debug!("error sending connect packet: {:?}, closing conn", e);
tracing::debug!("error sending connect packet: {:?}, closing conn", _e);
esocket.close(engineioxide::DisconnectReason::PacketParsingError);
return Ok(());
}
Expand Down

0 comments on commit cd3cdb0

Please sign in to comment.