chore(clippy): make clippy happy (#2475)

This commit is contained in:
Matthias Seitz
2023-04-30 11:40:43 +02:00
committed by GitHub
parent a3e627e801
commit d146bb86f6
6 changed files with 10 additions and 9 deletions

View File

@ -163,7 +163,7 @@ where
///
/// Panics if the stage is not in this set.
pub fn enable(mut self, stage_id: StageId) -> Self {
let mut entry =
let entry =
self.stages.get_mut(&stage_id).expect("Cannot enable a stage that is not in the set.");
entry.enabled = true;
self
@ -180,7 +180,7 @@ where
///
/// Panics if the stage is not in this set.
pub fn disable(mut self, stage_id: StageId) -> Self {
let mut entry =
let entry =
self.stages.get_mut(&stage_id).expect("Cannot disable a stage that is not in the set.");
entry.enabled = false;
self