Remove redundant clone
This commit is contained in:
parent
7b0735a832
commit
3878d24ef6
35 changed files with 56 additions and 65 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue