4 ms·
Would it be any worse to use `File::open("/dev/stdin")` there, so that it is safe code?
by kzrdude 10y ago
Would it be any worse to use `File::open("/dev/stdin")` there, so that it is safe code?
- mbrubeck 10y agoOh, that's a good idea. (It's unfortunate that neither my code nor yours is portable to non-Unix platforms like Windows.) UPDATE: Pushed a commit to my latest PR to replace the unsafe `File::from_raw_fd` with your `File::open`. Thanks!