From 8c836039d3e92cb44dbeebf247abbf5e9c04613d Mon Sep 17 00:00:00 2001 From: damocles Date: Mon, 1 Jun 2026 21:47:29 +0200 Subject: [PATCH] fix(#1013): make validate_groups private (only called by set_groups) --- hive-c0re/src/tool_groups.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hive-c0re/src/tool_groups.rs b/hive-c0re/src/tool_groups.rs index 049f2e7b..77fdcd56 100644 --- a/hive-c0re/src/tool_groups.rs +++ b/hive-c0re/src/tool_groups.rs @@ -72,7 +72,7 @@ pub fn write(map: &BTreeMap>) -> std::io::Result<()> { /// Validate a slice of group name strings against `ToolGroup::ALL`. /// Returns `Ok(())` when all names are known, or `Err` listing the /// unrecognised names so callers can surface a useful error message. -pub fn validate_groups(groups: &[String]) -> anyhow::Result<()> { +fn validate_groups(groups: &[String]) -> anyhow::Result<()> { let valid: std::collections::BTreeSet<&str> = hive_sh4re::ToolGroup::ALL.iter().map(|g| g.as_str()).collect(); let unknown: Vec<&str> = groups