Skip to content

Commit 6f9c132

Browse files
committed
Call ReentrantMutex::init() in stdout().
1 parent 45700a9 commit 6f9c132

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/std/src/io/stdio.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ pub fn stdout() -> Stdout {
548548
}
549549
}
550550
});
551-
ReentrantMutex::new(RefCell::new(LineWriter::new(stdout_raw())))
551+
let r = ReentrantMutex::new(RefCell::new(LineWriter::new(stdout_raw())));
552+
r.init();
553+
r
552554
}),
553555
}
554556
}

0 commit comments

Comments
 (0)