Skip to content

Commit aea3e58

Browse files
committed
missing imports
1 parent 22b416a commit aea3e58

File tree

1 file changed

+3
-2
lines changed
  • src/tools/run-make-support/src

1 file changed

+3
-2
lines changed

src/tools/run-make-support/src/run.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
use std::env;
22
use std::path::{Path, PathBuf};
33
use std::process::{Command, Output};
4-
use std::io::{self, BufReader, Write};
4+
use std::io::{self, BufReader, Read, Write};
55
use std::fs::File;
6+
use std::ffi::OsStr;
67

78
use crate::is_windows;
89

@@ -43,7 +44,7 @@ fn run_common(name: &str) -> (Command, Output) {
4344
/// referring to a different file.
4445
pub fn stdin_command<P>(command: &str, stdin: P, argument: P)
4546
where
46-
P: AsRef<Path> + AsRef<OsStr>,
47+
P: AsRef<Path> + AsRef<OsStr> + std::convert::AsRef<std::ffi::OsStr>,
4748
{
4849
let file = File::open(stdin).unwrap();
4950
let reader = BufReader::new(file);

0 commit comments

Comments
 (0)