Skip to content

Commit d300a64

Browse files
committed
compiletest: Remove stray copies.
1 parent 3d13d4b commit d300a64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/compiletest/compiletest.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ pub fn test_opts(config: &config) -> test::TestOpts {
230230
logfile: config.logfile.clone(),
231231
run_tests: true,
232232
run_benchmarks: true,
233-
ratchet_metrics: copy config.ratchet_metrics,
234-
ratchet_noise_percent: copy config.ratchet_noise_percent,
235-
save_metrics: copy config.save_metrics,
233+
ratchet_metrics: config.ratchet_metrics.clone(),
234+
ratchet_noise_percent: config.ratchet_noise_percent.clone(),
235+
save_metrics: config.save_metrics.clone(),
236236
}
237237
}
238238

@@ -315,7 +315,7 @@ pub fn make_test_closure(config: &config, testfile: &Path) -> test::TestFn {
315315

316316
pub fn make_metrics_test_closure(config: &config, testfile: &Path) -> test::TestFn {
317317
use std::cell::Cell;
318-
let config = Cell::new(copy *config);
318+
let config = Cell::new((*config).clone());
319319
let testfile = Cell::new(testfile.to_str());
320320
test::DynMetricFn(|mm| { runtest::run_metrics(config.take(), testfile.take(), mm) })
321321
}

0 commit comments

Comments
 (0)