diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-22 01:43:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-22 01:44:05 +0900 |
| commit | 6739da8a8e271a82d1bf8ca79bba58640ae6e743 (patch) | |
| tree | ce397b02662cf3c101cb36545b0a6c94ddc21826 /crates/shirabe/src/util/url.rs | |
| parent | 0b06f54103490e3ce5658e82bbc0119633e26cd8 (diff) | |
| download | php-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.tar.gz php-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.tar.zst php-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.zip | |
refactor(php-shim): remove unnecessary methods
Diffstat (limited to 'crates/shirabe/src/util/url.rs')
| -rw-r--r-- | crates/shirabe/src/util/url.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/util/url.rs b/crates/shirabe/src/util/url.rs index a6736aa..8bcd73e 100644 --- a/crates/shirabe/src/util/url.rs +++ b/crates/shirabe/src/util/url.rs @@ -11,7 +11,7 @@ pub struct Url; impl Url { pub fn update_dist_reference(config: &Config, mut url: String, r#ref: &str) -> String { let host = parse_url(&url, PHP_URL_HOST) - .as_string_opt() + .as_string() .map(|s| s.to_string()) .unwrap_or_default(); @@ -128,7 +128,7 @@ impl Url { } let mut origin = parse_url(url, PHP_URL_HOST) - .as_string_opt() + .as_string() .map(|s| s.to_string()) .unwrap_or_default(); if let Some(port) = parse_url(url, PHP_URL_PORT).as_int() { |
