Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

style(profiles): wrap long line in admitted_by_name

Steven Enamakeld13c3a5e43f5
diff --git a/crates/openhuman-core/src/profiles/tools.rs b/crates/openhuman-core/src/profiles/tools.rs
index e11309f48e..f3901b2907 100644
--- a/crates/openhuman-core/src/profiles/tools.rs
+++ b/crates/openhuman-core/src/profiles/tools.rs
@@ -189,7 +189,8 @@ pub fn admits(tool: &str, domain_ok: bool) -> bool {
/// Whether `tool` is one of the [`OPERATOR_ADMITTABLE`] tools and `named`
/// lists it.
pub fn admitted_by_name(tool: &str, named: Option<&std::collections::HashSet<String>>) -> bool {
- let admitted = OPERATOR_ADMITTABLE.contains(&tool) && named.is_some_and(|names| names.contains(tool));
+ let admitted =
+ OPERATOR_ADMITTABLE.contains(&tool) && named.is_some_and(|names| names.contains(tool));
if admitted {
log::debug!("[profiles][tools] admitting named `{tool}` outside its domain family");
}