Skip to content

Commit

Permalink
Silence new clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Feb 15, 2024
1 parent 8758e7e commit ef80730
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ewebsock/src/native_tungstenite_tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ impl WsSender {

/// Forget about this sender without closing the connection.
pub fn forget(mut self) {
#[allow(clippy::mem_forget)] // intentional
std::mem::forget(self.tx.take());
}
}
Expand Down

0 comments on commit ef80730

Please sign in to comment.