From fd7a9a902565eb93a7096498f45b0d664518bebf Mon Sep 17 00:00:00 2001 From: Josh Mcguigan Date: Tue, 29 Jan 2019 16:56:30 -0700 Subject: [PATCH] remove unecessary clippy allow new_ret_no_self --- src/raft.rs | 1 - src/raw_node.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/raft.rs b/src/raft.rs index 1fe38cbad..6339921c1 100644 --- a/src/raft.rs +++ b/src/raft.rs @@ -204,7 +204,6 @@ pub fn vote_resp_msg_type(t: MessageType) -> MessageType { } impl Raft { - #[cfg_attr(feature = "cargo-clippy", allow(clippy::new_ret_no_self))] /// Creates a new raft for use on the node. pub fn new(c: &Config, store: T) -> Result> { c.validate()?; diff --git a/src/raw_node.rs b/src/raw_node.rs index 21382f034..474fb63db 100644 --- a/src/raw_node.rs +++ b/src/raw_node.rs @@ -218,7 +218,6 @@ pub struct RawNode { } impl RawNode { - #[cfg_attr(feature = "cargo-clippy", allow(clippy::new_ret_no_self))] /// Create a new RawNode given some [`Config`](../struct.Config.html) and a list of [`Peer`](raw_node/struct.Peer.html)s. pub fn new(config: &Config, store: T, mut peers: Vec) -> Result> { assert_ne!(config.id, 0, "config.id must not be zero");