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

@@ -93,7 +93,7 @@ pub fn run(verbose: bool, files: &[String]) -> TestResult {
///
/// 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 path = Path::new(file);