We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b416a commit aea3e58Copy full SHA for aea3e58
src/tools/run-make-support/src/run.rs
@@ -1,8 +1,9 @@
1
use std::env;
2
use std::path::{Path, PathBuf};
3
use std::process::{Command, Output};
4
-use std::io::{self, BufReader, Write};
+use std::io::{self, BufReader, Read, Write};
5
use std::fs::File;
6
+use std::ffi::OsStr;
7
8
use crate::is_windows;
9
@@ -43,7 +44,7 @@ fn run_common(name: &str) -> (Command, Output) {
43
44
/// referring to a different file.
45
pub fn stdin_command<P>(command: &str, stdin: P, argument: P)
46
where
- P: AsRef<Path> + AsRef<OsStr>,
47
+ P: AsRef<Path> + AsRef<OsStr> + std::convert::AsRef<std::ffi::OsStr>,
48
{
49
let file = File::open(stdin).unwrap();
50
let reader = BufReader::new(file);
0 commit comments