Skip to content

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

refactor(storage): adjust scope creation to use as_ref

Steven Enamakelf6463e84c4d9
diff --git a/crates/openhuman-core/src/storage/scope.rs b/crates/openhuman-core/src/storage/scope.rs
index adba6184ba..21800810f0 100644
--- a/crates/openhuman-core/src/storage/scope.rs
+++ b/crates/openhuman-core/src/storage/scope.rs
@@ -35,7 +35,7 @@ impl Scope {
/// Creates an opaque scope value without requiring it to follow the host
/// grammar. This is used while reading legacy scopes before migration.
pub fn new(value: impl AsRef<str>) -> Result<Self, StorageError> {
- tinystoragedrivers::Scope::new(value).map(Self)
+ tinystoragedrivers::Scope::new(value.as_ref()).map(Self)
}
/// Parses an opaque stored scope without interpreting its host grammar.