1
Fork 0

Add missing dyn

This commit is contained in:
Tatsuyuki Ishi 2018-07-13 14:25:22 +09:00
parent 8646a17143
commit 66c4dc9769
23 changed files with 69 additions and 65 deletions

View file

@ -249,7 +249,7 @@ fn run_test(test: &str, cratename: &str, filename: &FileName, line: usize,
}
fn flush(&mut self) -> io::Result<()> { Ok(()) }
}
struct Bomb(Arc<Mutex<Vec<u8>>>, Box<Write+Send>);
struct Bomb(Arc<Mutex<Vec<u8>>>, Box<dyn Write+Send>);
impl Drop for Bomb {
fn drop(&mut self) {
let _ = self.1.write_all(&self.0.lock().unwrap());