clippy lints

This commit is contained in:
John Smith
2021-12-04 13:18:44 -05:00
parent 62ec08359f
commit f500d643d8
2 changed files with 15 additions and 32 deletions

View File

@@ -58,19 +58,11 @@ impl BlockId {
/////////////////////////////////////////////////////////////////////////////////////////////////////
#[derive(Clone, Debug, PartialEq, PartialOrd, Ord, Eq, Hash)]
#[derive(Clone, Debug, PartialEq, PartialOrd, Ord, Eq, Hash, Default)]
pub struct SenderInfo {
pub socket_address: Option<SocketAddr>,
}
impl Default for SenderInfo {
fn default() -> Self {
Self {
socket_address: None,
}
}
}
#[derive(Clone, Debug, Default)]
pub struct NodeInfo {
pub can_route: bool,