Skip to content

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

docs(storage_grants): move declaration type alias above its doc comment

Steven Enamakel371258c461c7
diff --git a/crates/openhuman-core/src/modules/storage_grants.rs b/crates/openhuman-core/src/modules/storage_grants.rs
index ea699dc964..ba11240280 100644
--- a/crates/openhuman-core/src/modules/storage_grants.rs
+++ b/crates/openhuman-core/src/modules/storage_grants.rs
@@ -175,15 +175,15 @@ impl StorageGrant {
}
}
+/// One module's declaration: its registry id and the grant it holds.
+type Declaration = (&'static str, fn() -> StorageGrant);
+
/// The modules whose build declares storage, and what each may use.
///
/// Empty today: no loadable module consumes the storage bus yet. A module
/// that does adds its row here (a declaration is a reviewable build-time
/// decision, like the registry's digests) and then calls
/// `ai.tinyhumans.tinystorage.Storage`; until then it has no storage at all.
-/// One module's declaration: its registry id and the grant it holds.
-type Declaration = (&'static str, fn() -> StorageGrant);
-
#[must_use]
pub fn declared(module_id: &str) -> Option<StorageGrant> {
let table: &[Declaration] = &[];