Skip to content

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

fix(doctor): widen visibility of DiagnosticItem constructors

Steven Enamakel8ccbe84e2583
diff --git a/crates/openhuman-core/src/platform/doctor/core/types.rs b/crates/openhuman-core/src/platform/doctor/core/types.rs
index 47d604e5e8..b694927504 100644
--- a/crates/openhuman-core/src/platform/doctor/core/types.rs
+++ b/crates/openhuman-core/src/platform/doctor/core/types.rs
@@ -25,14 +25,14 @@ impl DiagnosticItem {
message: msg.into(),
}
}
- fn warn(category: impl Into<String>, msg: impl Into<String>) -> Self {
+ pub(crate) fn warn(category: impl Into<String>, msg: impl Into<String>) -> Self {
Self {
severity: Severity::Warn,
category: category.into(),
message: msg.into(),
}
}
- fn error(category: impl Into<String>, msg: impl Into<String>) -> Self {
+ pub(crate) fn error(category: impl Into<String>, msg: impl Into<String>) -> Self {
Self {
severity: Severity::Error,
category: category.into(),