Skip to content

Commit

Permalink
remove no-op 'let _ = '
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 4, 2022
1 parent fd02567 commit c823dfa
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions library/std/src/sync/mpsc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,7 @@ impl<T> Clone for Sender<T> {

#[stable(feature = "rust1", since = "1.0.0")]
impl<T> Drop for Sender<T> {
fn drop(&mut self) {
let _ = self.inner;
}
fn drop(&mut self) {}
}

#[stable(feature = "mpsc_debug", since = "1.8.0")]
Expand Down Expand Up @@ -751,9 +749,7 @@ impl<T> Clone for SyncSender<T> {

#[stable(feature = "rust1", since = "1.0.0")]
impl<T> Drop for SyncSender<T> {
fn drop(&mut self) {
let _ = self.inner;
}
fn drop(&mut self) {}
}

#[stable(feature = "mpsc_debug", since = "1.8.0")]
Expand Down Expand Up @@ -1094,9 +1090,7 @@ impl<T> IntoIterator for Receiver<T> {

#[stable(feature = "rust1", since = "1.0.0")]
impl<T> Drop for Receiver<T> {
fn drop(&mut self) {
let _ = self.inner;
}
fn drop(&mut self) {}
}

#[stable(feature = "mpsc_debug", since = "1.8.0")]
Expand Down

0 comments on commit c823dfa

Please sign in to comment.