upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/lib/git/nostr_url.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-10-17 15:02:53 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2025-10-17 15:16:03 +0100
commit709946c1b49114b71d3080bb8d97e63525f40fd9 (patch)
treec6b96c9a4c0c306187991166338f108b95d3bb80 /src/lib/git/nostr_url.rs
parentc7c6e8ba4bf3309aed92a620b2435370dae0d6ed (diff)
chore: cargo update
update patches ahead of wider upgrade. clippy required some autofixes
Diffstat (limited to 'src/lib/git/nostr_url.rs')
-rw-r--r--src/lib/git/nostr_url.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/git/nostr_url.rs b/src/lib/git/nostr_url.rs
index 0a8338a..23c98e7 100644
--- a/src/lib/git/nostr_url.rs
+++ b/src/lib/git/nostr_url.rs
@@ -543,7 +543,7 @@ pub fn convert_clone_url_to_https(url: &str) -> Result<String> {
543 // Construct the HTTPS URL 543 // Construct the HTTPS URL
544 return Ok(format!("https://{}/{}", parts[0], parts[1..].join("/"))); 544 return Ok(format!("https://{}/{}", parts[0], parts[1..].join("/")));
545 } 545 }
546 bail!("Invalid SSH URL format: {}", url); 546 bail!("Invalid SSH URL format: {url}");
547 } 547 }
548 // Convert ftp:// to https:// 548 // Convert ftp:// to https://
549 else if stripped_url.starts_with("ftp://") { 549 else if stripped_url.starts_with("ftp://") {
@@ -555,7 +555,7 @@ pub fn convert_clone_url_to_https(url: &str) -> Result<String> {
555 } 555 }
556 556
557 // If the URL is neither HTTPS, SSH, nor git@, return an error 557 // If the URL is neither HTTPS, SSH, nor git@, return an error
558 bail!("Unsupported URL protocol: {}", url); 558 bail!("Unsupported URL protocol: {url}");
559} 559}
560 560
561// Function to strip username and password from the URL 561// Function to strip username and password from the URL