feat(config): add result type to list_rules function

- modify list_rules to return a Result type
- allows for error handling during rule listing
This commit is contained in:
Jeremiah Russell
2025-10-08 07:52:54 +01:00
committed by Jeremiah Russell
parent 6b1dedc10a
commit c1e42dfa50

View File

@@ -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(())
}
}