filetests: run_passes can take &str, not &String.

This commit is contained in:
Bruce Mitchener
2018-09-23 14:21:28 +07:00
committed by Dan Gohman
parent 2a7cc7e644
commit e07e159bda
2 changed files with 2 additions and 2 deletions

View File

@@ -217,7 +217,7 @@ fn main() {
rest_cmd.is_present("verbose"), rest_cmd.is_present("verbose"),
&get_vec(rest_cmd.values_of("pass")), &get_vec(rest_cmd.values_of("pass")),
target_val, target_val,
&rest_cmd.value_of("single-file").unwrap().to_string(), rest_cmd.value_of("single-file").unwrap(),
).map(|_time| ()) ).map(|_time| ())
} }
("print-cfg", Some(rest_cmd)) => { ("print-cfg", Some(rest_cmd)) => {

View File

@@ -93,7 +93,7 @@ pub fn run(verbose: bool, files: &[String]) -> TestResult {
/// ///
/// Directories are scanned recursively for test cases ending in `.clif`. /// Directories are scanned recursively for test cases ending in `.clif`.
/// ///
pub fn run_passes(verbose: bool, passes: &[String], target: &str, file: &String) -> TestResult { pub fn run_passes(verbose: bool, passes: &[String], target: &str, file: &str) -> TestResult {
let mut runner = TestRunner::new(verbose); let mut runner = TestRunner::new(verbose);
let path = Path::new(file); let path = Path::new(file);