Skip to content

Commit

Permalink
Call ReentrantMutex::init() in stdout().
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Sep 24, 2020
1 parent 45700a9 commit 6f9c132
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/std/src/io/stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}),
}
}
Expand Down

0 comments on commit 6f9c132

Please sign in to comment.