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