From a8623a5e867825400073d2597dfb3118d6624ef7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 24 Jun 2026 04:51:47 +0900 Subject: chore: unwrap meaningless PhpMixed::String() --- crates/shirabe/src/repository/vcs/gitlab_driver.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'crates/shirabe/src/repository/vcs/gitlab_driver.rs') 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))), ); } } -- cgit v1.3.1