aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/forgejo_url.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/forgejo_url.rs')
-rw-r--r--crates/shirabe/src/util/forgejo_url.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/shirabe/src/util/forgejo_url.rs b/crates/shirabe/src/util/forgejo_url.rs
index d336b87..157ea53 100644
--- a/crates/shirabe/src/util/forgejo_url.rs
+++ b/crates/shirabe/src/util/forgejo_url.rs
@@ -1,6 +1,5 @@
//! ref: composer/src/Composer/Util/ForgejoUrl.php
-use anyhow::Result;
use shirabe_external_packages::composer::pcre::Preg;
use shirabe_php_shim::InvalidArgumentException;
@@ -25,7 +24,7 @@ impl ForgejoUrl {
}
}
- pub fn create(repo_url: &str) -> Result<Self> {
+ pub fn create(repo_url: &str) -> anyhow::Result<Self> {
match Self::try_from(Some(repo_url)) {
Some(url) => Ok(url),
None => Err(InvalidArgumentException {