net: Clippy lints.

This commit is contained in:
Luther Blissett
2022-09-23 13:53:37 +02:00
parent cfd2511e45
commit ee873317f3
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ impl ProtocolVersion {
// Send version acknowledgement
let verack = message::VerackMessage {
app: self.settings.app_version.clone().unwrap_or("".to_string()),
app: self.settings.app_version.clone().unwrap_or_else(|| "".to_string()),
};
self.channel.clone().send(verack).await?;

View File

@@ -34,7 +34,7 @@ pub trait TransportListener: Send + Sync + Unpin {
async fn next(&self) -> Result<(Box<dyn TransportStream>, Url)>;
}
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum TransportName {
Tcp(Option<String>),
Tor(Option<String>),