mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
peer_id: don't surround version with parentheses when displaying
This commit is contained in:
parent
4baba7b34b
commit
bbfe54670a
1 changed files with 14 additions and 14 deletions
|
|
@ -172,20 +172,20 @@ impl PeerClient {
|
|||
impl Display for PeerClient {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::BitTorrent(v) => write!(f, "BitTorrent ({})", v.as_str()),
|
||||
Self::Deluge(v) => write!(f, "Deluge ({})", v.as_str()),
|
||||
Self::LibTorrentRakshasa(v) => write!(f, "lt (rakshasa) ({})", v.as_str()),
|
||||
Self::LibTorrentRasterbar(v) => write!(f, "lt (rasterbar) ({})", v.as_str()),
|
||||
Self::QBitTorrent(v) => write!(f, "QBitTorrent ({})", v.as_str()),
|
||||
Self::Transmission(v) => write!(f, "Transmission ({})", v.as_str()),
|
||||
Self::UTorrent(v) => write!(f, "µTorrent ({})", v.as_str()),
|
||||
Self::UTorrentEmbedded(v) => write!(f, "µTorrent Emb. ({})", v.as_str()),
|
||||
Self::UTorrentMac(v) => write!(f, "µTorrent Mac ({})", v.as_str()),
|
||||
Self::UTorrentWeb(v) => write!(f, "µTorrent Web ({})", v.as_str()),
|
||||
Self::Vuze(v) => write!(f, "Vuze ({})", v.as_str()),
|
||||
Self::WebTorrent(v) => write!(f, "WebTorrent ({})", v.as_str()),
|
||||
Self::WebTorrentDesktop(v) => write!(f, "WebTorrent Desktop ({})", v.as_str()),
|
||||
Self::Mainline(v) => write!(f, "Mainline ({})", v.as_str()),
|
||||
Self::BitTorrent(v) => write!(f, "BitTorrent {}", v.as_str()),
|
||||
Self::Deluge(v) => write!(f, "Deluge {}", v.as_str()),
|
||||
Self::LibTorrentRakshasa(v) => write!(f, "lt (rakshasa) {}", v.as_str()),
|
||||
Self::LibTorrentRasterbar(v) => write!(f, "lt (rasterbar) {}", v.as_str()),
|
||||
Self::QBitTorrent(v) => write!(f, "QBitTorrent {}", v.as_str()),
|
||||
Self::Transmission(v) => write!(f, "Transmission {}", v.as_str()),
|
||||
Self::UTorrent(v) => write!(f, "µTorrent {}", v.as_str()),
|
||||
Self::UTorrentEmbedded(v) => write!(f, "µTorrent Emb. {}", v.as_str()),
|
||||
Self::UTorrentMac(v) => write!(f, "µTorrent Mac {}", v.as_str()),
|
||||
Self::UTorrentWeb(v) => write!(f, "µTorrent Web {}", v.as_str()),
|
||||
Self::Vuze(v) => write!(f, "Vuze {}", v.as_str()),
|
||||
Self::WebTorrent(v) => write!(f, "WebTorrent {}", v.as_str()),
|
||||
Self::WebTorrentDesktop(v) => write!(f, "WebTorrent Desktop {}", v.as_str()),
|
||||
Self::Mainline(v) => write!(f, "Mainline {}", v.as_str()),
|
||||
Self::OtherWithPrefixAndVersion { prefix, version } => {
|
||||
write!(f, "Other ({}) ({})", prefix.as_str(), version.as_str())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue