Remove unused argument
This commit is contained in:
parent
3b1d735118
commit
fdc931899d
1 changed files with 3 additions and 18 deletions
|
@ -449,15 +449,8 @@ pub fn test_opts(config: &Config) -> test::TestOpts {
|
|||
pub fn make_tests(config: &Config, tests: &mut Vec<test::TestDescAndFn>) {
|
||||
debug!("making tests from {:?}", config.src_base.display());
|
||||
let inputs = common_inputs_stamp(config);
|
||||
collect_tests_from_dir(
|
||||
config,
|
||||
&config.src_base,
|
||||
&config.src_base,
|
||||
&PathBuf::new(),
|
||||
&inputs,
|
||||
tests,
|
||||
)
|
||||
.expect(&format!("Could not read tests from {}", config.src_base.display()));
|
||||
collect_tests_from_dir(config, &config.src_base, &PathBuf::new(), &inputs, tests)
|
||||
.expect(&format!("Could not read tests from {}", config.src_base.display()));
|
||||
}
|
||||
|
||||
/// Returns a stamp constructed from input files common to all test cases.
|
||||
|
@ -494,7 +487,6 @@ fn common_inputs_stamp(config: &Config) -> Stamp {
|
|||
|
||||
fn collect_tests_from_dir(
|
||||
config: &Config,
|
||||
base: &Path,
|
||||
dir: &Path,
|
||||
relative_dir_path: &Path,
|
||||
inputs: &Stamp,
|
||||
|
@ -538,14 +530,7 @@ fn collect_tests_from_dir(
|
|||
let relative_file_path = relative_dir_path.join(file.file_name());
|
||||
if &file_name != "auxiliary" {
|
||||
debug!("found directory: {:?}", file_path.display());
|
||||
collect_tests_from_dir(
|
||||
config,
|
||||
base,
|
||||
&file_path,
|
||||
&relative_file_path,
|
||||
inputs,
|
||||
tests,
|
||||
)?;
|
||||
collect_tests_from_dir(config, &file_path, &relative_file_path, inputs, tests)?;
|
||||
}
|
||||
} else {
|
||||
debug!("found other file/directory: {:?}", file_path.display());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue