Remove redundant clone

This commit is contained in:
Shotaro Yamada 2018-10-26 03:11:11 +09:00
parent 7b0735a832
commit 3878d24ef6
35 changed files with 56 additions and 65 deletions

View file

@ -346,7 +346,7 @@ fn mk_main(cx: &mut TestCtxt) -> P<ast::Item> {
test_runner.span = sp;
let test_main_path_expr = ecx.expr_path(test_runner.clone());
let test_main_path_expr = ecx.expr_path(test_runner);
let call_test_main = ecx.expr_call(sp, test_main_path_expr,
vec![mk_tests_slice(cx)]);
let call_test_main = ecx.stmt_expr(call_test_main);