Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
koba-e964 committed Oct 15, 2020
1 parent 65809a8 commit 6cf821b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions raftlog_simu/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ impl Stream for Process {
}
}

#[cfg_attr(feature = "cargo-clippy", allow(large_enum_variant))]
#[allow(clippy::large_enum_variant)]
enum ProcessState {
Alive(Alive),
Down(Down),
Expand Down Expand Up @@ -270,7 +270,8 @@ impl Alive {
) -> Self {
let metric_builder = MetricBuilder::new();
let machine = MachineState::new();
let rlog = ReplicatedLog::new(node_id, old_members, io, &metric_builder).expect("Never fails");
let rlog =
ReplicatedLog::new(node_id, old_members, io, &metric_builder).expect("Never fails");
Alive {
logger,
machine,
Expand Down

0 comments on commit 6cf821b

Please sign in to comment.