From 6cf821bb587a02a3cd9135a943443623cfefaad7 Mon Sep 17 00:00:00 2001 From: koba-e964 <3303362+koba-e964@users.noreply.github.com> Date: Thu, 15 Oct 2020 18:01:08 +0900 Subject: [PATCH] Make clippy happy --- raftlog_simu/src/process.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/raftlog_simu/src/process.rs b/raftlog_simu/src/process.rs index de6e933..b41f94a 100644 --- a/raftlog_simu/src/process.rs +++ b/raftlog_simu/src/process.rs @@ -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), @@ -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,