Call ReentrantMutex::init() in stdout().

This commit is contained in:
Mara Bos 2020-09-24 19:25:21 +02:00
parent 45700a9d58
commit 6f9c1323a7

View File

@ -548,7 +548,9 @@ pub fn stdout() -> Stdout {
}
}
});
ReentrantMutex::new(RefCell::new(LineWriter::new(stdout_raw())))
let r = ReentrantMutex::new(RefCell::new(LineWriter::new(stdout_raw())));
r.init();
r
}),
}
}