From 432472808051cb4f1bb9517b858dbc810aaa5a63 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 25 Jul 2026 16:16:33 +0900 Subject: refactor: replace redundant clones with moves Co-Authored-By: Claude Opus 5 --- crates/shirabe/tests/repository/vcs/github_driver_test.rs | 5 +---- crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'crates/shirabe/tests/repository') diff --git a/crates/shirabe/tests/repository/vcs/github_driver_test.rs b/crates/shirabe/tests/repository/vcs/github_driver_test.rs index dfdbb01e..d6674808 100644 --- a/crates/shirabe/tests/repository/vcs/github_driver_test.rs +++ b/crates/shirabe/tests/repository/vcs/github_driver_test.rs @@ -725,10 +725,7 @@ fn test_private_repository_no_interaction() { { let mut top: IndexMap = IndexMap::new(); let mut config_section: IndexMap = IndexMap::new(); - config_section.insert( - "cache-vcs-dir".to_string(), - PhpMixed::String(cache_vcs_dir.clone()), - ); + config_section.insert("cache-vcs-dir".to_string(), PhpMixed::String(cache_vcs_dir)); top.insert("config".to_string(), PhpMixed::Array(config_section)); config.borrow_mut().merge(&top, Config::SOURCE_UNKNOWN); } diff --git a/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs b/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs index 53d93993..2dd968ce 100644 --- a/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs +++ b/crates/shirabe/tests/repository/vcs/gitlab_driver_test.rs @@ -528,7 +528,7 @@ fn test_get_paginated_refs() { "http://gitlab.com/api/v4/projects/mygroup%2Fmyproject/repository/tags?id=mygroup%2Fmyproject&page=2&per_page=20", None, 200, - branch_data.clone(), + branch_data, vec!["Link: ; rel=\"prev\", ; rel=\"first\", ; rel=\"last\"".to_string()], ), ], -- cgit v1.3.1