From b96bccd71f8c4529bf7be509ce2c7e28474638b9 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 7 Mar 2019 08:56:53 -0800 Subject: [PATCH] Use Self --- core/src/cluster_info.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/cluster_info.rs b/core/src/cluster_info.rs index d3f9a947eb..1d4a9df6e5 100644 --- a/core/src/cluster_info.rs +++ b/core/src/cluster_info.rs @@ -164,10 +164,10 @@ enum Protocol { impl ClusterInfo { /// Without a valid keypair gossip will not function. Only useful for tests. pub fn new_with_invalid_keypair(node_info: NodeInfo) -> Self { - ClusterInfo::new(node_info, Arc::new(Keypair::new())) + Self::new(node_info, Arc::new(Keypair::new())) } pub fn new(node_info: NodeInfo, keypair: Arc) -> Self { - let mut me = ClusterInfo { + let mut me = Self { gossip: CrdsGossip::default(), keypair, };