Skip to content

Commit

Permalink
remove unecessary clippy allow new_ret_no_self (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshMcguigan authored and BusyJay committed Jan 30, 2019
1 parent 3aead26 commit 3eb4235
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/raft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ pub fn vote_resp_msg_type(t: MessageType) -> MessageType {
}

impl<T: Storage> Raft<T> {
#[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<Raft<T>> {
c.validate()?;
Expand Down
1 change: 0 additions & 1 deletion src/raw_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ pub struct RawNode<T: Storage> {
}

impl<T: Storage> RawNode<T> {
#[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<Peer>) -> Result<RawNode<T>> {
assert_ne!(config.id, 0, "config.id must not be zero");
Expand Down

0 comments on commit 3eb4235

Please sign in to comment.