(&mut self, bytes: &[u8])
| 70 | |
| 71 | impl io::Write for Captured { |
| 72 | fn write(&mut self, bytes: &[u8]) -> io::Result<usize> { |
| 73 | self.0.lock().unwrap().extend_from_slice(bytes); |
| 74 | Ok(bytes.len()) |
| 75 | } |
| 76 | |
| 77 | fn flush(&mut self) -> io::Result<()> { |
| 78 | Ok(()) |