about summary refs log tree commit diff
path: root/library/std/src/io
diff options
context:
space:
mode:
authorFabian Wolff <fabian.wolff@alumni.ethz.ch>2021-05-21 19:35:49 +0200
committerFabian Wolff <fabian.wolff@alumni.ethz.ch>2021-09-09 19:49:07 +0200
commit79adda930f9b607ecb4819ed7abcf1cd285e938a (patch)
tree96a1db43372408e95bcd5c6c5f250a43382a17cb /library/std/src/io
parent497ee321af3b8496eaccd7af7b437f18bab81abf (diff)
downloadrust-79adda930f9b607ecb4819ed7abcf1cd285e938a.tar.gz
rust-79adda930f9b607ecb4819ed7abcf1cd285e938a.zip
Ignore automatically derived impls of `Clone` and `Debug` in dead code analysis
Diffstat (limited to 'library/std/src/io')
-rw-r--r--library/std/src/io/buffered/tests.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/library/std/src/io/buffered/tests.rs b/library/std/src/io/buffered/tests.rs
index f6c2b499567..d290c3c4660 100644
--- a/library/std/src/io/buffered/tests.rs
+++ b/library/std/src/io/buffered/tests.rs
@@ -468,9 +468,6 @@ struct ProgrammableSink {
     // Writes append to this slice
     pub buffer: Vec<u8>,
 
-    // Flush sets this flag
-    pub flushed: bool,
-
     // If true, writes will always be an error
     pub always_write_error: bool,
 
@@ -520,7 +517,6 @@ impl Write for ProgrammableSink {
         if self.always_flush_error {
             Err(io::Error::new(io::ErrorKind::Other, "test - always_flush_error"))
         } else {
-            self.flushed = true;
             Ok(())
         }
     }