From 092b9606ff2b721d858a5c7b2b27a2f9942b4bc4 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 16 Jul 2025 10:10:41 +0100 Subject: chore: nix flake update required running: `cargo fix --allow-dirty --allow-staged` `cargo clippy --fix --allow-dirty -- -D warnings` to fix problems and then manually fixing some too --- src/lib/git/nostr_url.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/git/nostr_url.rs') diff --git a/src/lib/git/nostr_url.rs b/src/lib/git/nostr_url.rs index a9b08eb..e9b482f 100644 --- a/src/lib/git/nostr_url.rs +++ b/src/lib/git/nostr_url.rs @@ -71,13 +71,13 @@ impl fmt::Display for NostrUrlDecoded { } write!(f, "nostr://")?; if let Some(user) = &self.user { - write!(f, "{}@", user)?; + write!(f, "{user}@")?; } if let Some(protocol) = &self.protocol { - write!(f, "{}/", protocol)?; + write!(f, "{protocol}/")?; } if let Some(nip05) = &self.nip05 { - write!(f, "{}/", nip05)?; + write!(f, "{nip05}/")?; } else { write!(f, "{}/", self.coordinate.public_key.to_bech32().unwrap())?; } @@ -454,7 +454,7 @@ impl CloneUrl { format!("{}@", user.as_deref().unwrap_or("git")).as_str(), ); if url.port().is_some() { - formatted_url = format!("ssh://{}", formatted_url); + formatted_url = format!("ssh://{formatted_url}"); } else { formatted_url = replace_first_occurrence(&formatted_url, '/', ':'); } -- cgit v1.2.3