From 92e06d80540a12d91e23ed6e557cc074d90d4d66 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 6 Sep 2024 08:02:45 +0100 Subject: refactor: render ServerProtocols lowercase as they are easier to read --- src/lib/git/nostr_url.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/lib') diff --git a/src/lib/git/nostr_url.rs b/src/lib/git/nostr_url.rs index f46e751..c7e1bf2 100644 --- a/src/lib/git/nostr_url.rs +++ b/src/lib/git/nostr_url.rs @@ -19,13 +19,13 @@ pub enum ServerProtocol { impl fmt::Display for ServerProtocol { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { - ServerProtocol::Http => write!(f, "HTTP"), - ServerProtocol::Https => write!(f, "HTTPS"), - ServerProtocol::Ftp => write!(f, "FTP"), - ServerProtocol::Ssh => write!(f, "SSH"), - ServerProtocol::Git => write!(f, "GIT"), - ServerProtocol::Local => write!(f, "LOCAL"), - ServerProtocol::Unspecified => write!(f, "Unsepcified"), + ServerProtocol::Http => write!(f, "http"), + ServerProtocol::Https => write!(f, "https"), + ServerProtocol::Ftp => write!(f, "ftp"), + ServerProtocol::Ssh => write!(f, "ssh"), + ServerProtocol::Git => write!(f, "git"), + ServerProtocol::Local => write!(f, "local"), + ServerProtocol::Unspecified => write!(f, "unsepcified"), } } } -- cgit v1.2.3