Remove some more cfg(test)s

This commit is contained in:
Vadim Petrochenkov
2019-08-02 01:58:40 +03:00
parent 3d0d6ee271
commit 62ec2cb7ac
11 changed files with 45 additions and 60 deletions

View File

@@ -380,28 +380,6 @@ pub struct TestOpts {
pub options: Options,
}
impl TestOpts {
#[cfg(test)]
fn new() -> TestOpts {
TestOpts {
list: false,
filter: None,
filter_exact: false,
exclude_should_panic: false,
run_ignored: RunIgnored::No,
run_tests: false,
bench_benchmarks: false,
logfile: None,
nocapture: false,
color: AutoColor,
format: OutputFormat::Pretty,
test_threads: None,
skip: vec![],
options: Options::new(),
}
}
}
/// Result of parsing the options.
pub type OptRes = Result<TestOpts, String>;