remove no-op 'let _ = '

This commit is contained in:
Ralf Jung 2022-12-04 10:32:00 +01:00
parent fd02567705
commit c823dfa8b2

View File

@ -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")]
@ -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")]
@ -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")]