From 3673c059f37badb4604de4377fcd79fbe31b065f Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Fri, 10 Oct 2025 12:42:07 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(config):=20add=20documentat?= =?UTF-8?q?ion=20for=20get=5Frules=5Fby=5Flabel=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add comment to describe the purpose of the function --- src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 12f54ef..9c02d1b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -137,7 +137,8 @@ impl Config { Ok(()) } - fn get_rules_by_label(&self) -> BTreeMap { + /// Get a map of the rules indexed by labels + pub fn get_rules_by_label(&self) -> BTreeMap { let mut rbl = BTreeMap::new(); for rule in self.rules.values() {