From 992e62f0c9759010e097326c10afc28ea1d0c195 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Thu, 9 Oct 2025 14:02:45 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(config):=20correct=20typo=20?= =?UTF-8?q?in=20eol=5Fcmd=20module=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix a typo in the module name from `eol_cmd` to `eol_action` - update the `set_command` function to accept a reference to `EolAction` --- src/config/eol_rule.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/eol_rule.rs b/src/config/eol_rule.rs index dfab106..7e41542 100644 --- a/src/config/eol_rule.rs +++ b/src/config/eol_rule.rs @@ -2,7 +2,7 @@ use std::{collections::BTreeSet, fmt}; use serde::{Deserialize, Serialize}; -use crate::{Retention, eol_cmd::EolAction}; +use crate::{Retention, eol_action::EolAction}; /// End of life rules #[derive(Debug, Serialize, Deserialize, Default, Clone)] @@ -92,7 +92,7 @@ impl EolRule { self.labels.iter().map(|i| i.to_string()).collect() } - pub(crate) fn set_command(&mut self, value: EolAction) -> &mut Self { + pub(crate) fn set_command(&mut self, value: &EolAction) -> &mut Self { self.action = value.to_string(); self }