Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unnecessary clippy allow new_ret_no_self #174

Merged
merged 1 commit into from
Jan 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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