From c1e42dfa50a7caf4f8eda11f367608c6b260af83 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Wed, 8 Oct 2025 07:52:54 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(config):=20add=20result=20type?= =?UTF-8?q?=20to=20list=5Frules=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - modify list_rules to return a Result type - allows for error handling during rule listing --- src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 9984578..d966857 100644 --- a/src/config.rs +++ b/src/config.rs @@ -99,9 +99,10 @@ impl Config { } /// List the end of life rules set in the configuration - pub fn list_rules(&self) { + pub fn list_rules(&self) -> Result<(), Error> { for rule in &self.rules { println!("{rule}"); } + Ok(()) } }