aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/repository/vcs/gitlab_driver.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-24 04:51:47 +0900
committernsfisis <nsfisis@gmail.com>2026-06-24 05:02:54 +0900
commita8623a5e867825400073d2597dfb3118d6624ef7 (patch)
tree7df29f68596765dc3914209e14af4999b721815f /crates/shirabe/src/repository/vcs/gitlab_driver.rs
parente87d37a294a4c754585309d391d793a2c9a1287e (diff)
downloadphp-shirabe-a8623a5e867825400073d2597dfb3118d6624ef7.tar.gz
php-shirabe-a8623a5e867825400073d2597dfb3118d6624ef7.tar.zst
php-shirabe-a8623a5e867825400073d2597dfb3118d6624ef7.zip
chore: unwrap meaningless PhpMixed::String()
Diffstat (limited to 'crates/shirabe/src/repository/vcs/gitlab_driver.rs')
-rw-r--r--crates/shirabe/src/repository/vcs/gitlab_driver.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/crates/shirabe/src/repository/vcs/gitlab_driver.rs b/crates/shirabe/src/repository/vcs/gitlab_driver.rs
index e0fb72e..f1f361e 100644
--- a/crates/shirabe/src/repository/vcs/gitlab_driver.rs
+++ b/crates/shirabe/src/repository/vcs/gitlab_driver.rs
@@ -88,7 +88,7 @@ impl GitLabDriver {
return Err(InvalidArgumentException {
message: format!(
"The GitLab repository URL {} is invalid. It must be the HTTP URL of a GitLab project.",
- PhpMixed::String(self.inner.url.clone()),
+ self.inner.url.clone(),
),
code: 0,
}
@@ -357,11 +357,7 @@ impl GitLabDriver {
}) {
support.insert(
"source".to_string(),
- PhpMixed::String(format!(
- "{}/-/tree/{}",
- PhpMixed::String(web_url),
- PhpMixed::String(label_str),
- )),
+ PhpMixed::String(format!("{}/-/tree/{}", web_url, label_str)),
);
}
}
@@ -388,7 +384,7 @@ impl GitLabDriver {
}) {
support.insert(
"issues".to_string(),
- PhpMixed::String(format!("{}/-/issues", PhpMixed::String(web_url),)),
+ PhpMixed::String(format!("{}/-/issues", PhpMixed::String(web_url))),
);
}
}