diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-06 08:02:45 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-06 08:02:45 +0100 |
| commit | 92e06d80540a12d91e23ed6e557cc074d90d4d66 (patch) | |
| tree | 7aa620e8d8dcf8a531f58f34a707ee9b8cc5157a /src/lib/git | |
| parent | a5a662632b61ef2b35946af1e93f30a885ea1db2 (diff) | |
refactor: render ServerProtocols lowercase
as they are easier to read
Diffstat (limited to 'src/lib/git')
| -rw-r--r-- | src/lib/git/nostr_url.rs | 14 |
1 files changed, 7 insertions, 7 deletions
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 { | |||
| 19 | impl fmt::Display for ServerProtocol { | 19 | impl fmt::Display for ServerProtocol { |
| 20 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | 20 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 21 | match self { | 21 | match self { |
| 22 | ServerProtocol::Http => write!(f, "HTTP"), | 22 | ServerProtocol::Http => write!(f, "http"), |
| 23 | ServerProtocol::Https => write!(f, "HTTPS"), | 23 | ServerProtocol::Https => write!(f, "https"), |
| 24 | ServerProtocol::Ftp => write!(f, "FTP"), | 24 | ServerProtocol::Ftp => write!(f, "ftp"), |
| 25 | ServerProtocol::Ssh => write!(f, "SSH"), | 25 | ServerProtocol::Ssh => write!(f, "ssh"), |
| 26 | ServerProtocol::Git => write!(f, "GIT"), | 26 | ServerProtocol::Git => write!(f, "git"), |
| 27 | ServerProtocol::Local => write!(f, "LOCAL"), | 27 | ServerProtocol::Local => write!(f, "local"), |
| 28 | ServerProtocol::Unspecified => write!(f, "Unsepcified"), | 28 | ServerProtocol::Unspecified => write!(f, "unsepcified"), |
| 29 | } | 29 | } |
| 30 | } | 30 | } |
| 31 | } | 31 | } |