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");