Skip to content

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

chore(config): reorder imports for consistency

Steven Enamakeld2adcdaa0b83
diff --git a/crates/openhuman-core/src/config/schema/load/config_file_read.rs b/crates/openhuman-core/src/config/schema/load/config_file_read.rs
index d9f6299564..8191205362 100644
--- a/crates/openhuman-core/src/config/schema/load/config_file_read.rs
+++ b/crates/openhuman-core/src/config/schema/load/config_file_read.rs
@@ -1,3 +1,8 @@
+use anyhow::{Context, Result};
+use std::path::Path;
+use std::sync::{Mutex, OnceLock};
+use tokio::fs;
+
/// Guards the "corrupted config read, resetting to defaults" warning so it
/// fires at most once per process lifetime. Without this, a permanently
/// non-UTF-8 config file floods telemetry with hundreds of identical
@@ -266,8 +271,3 @@ async fn describe_config_ownership(path: &Path) -> String {
async fn describe_config_ownership(_path: &Path) -> String {
String::new()
}
-use anyhow::{Context, Result};
-use std::path::Path;
-use std::sync::{Mutex, OnceLock};
-use tokio::fs;
-
diff --git a/crates/openhuman-core/src/config/schema/load/impl_load.rs b/crates/openhuman-core/src/config/schema/load/impl_load.rs
index c55453bb91..602566d819 100644
--- a/crates/openhuman-core/src/config/schema/load/impl_load.rs
+++ b/crates/openhuman-core/src/config/schema/load/impl_load.rs
@@ -15,9 +15,9 @@ use super::secrets::{
use anyhow::{Context, Result};
use std::path::Path;
-pub(super) use super::parse_source::parse_source_contents;
pub(super) use super::config_file_read::read_config_with_recovery_or_default;
pub(crate) use super::config_file_read::CONFIG_OWNER_MISMATCH_MARKER;
+pub(super) use super::parse_source::parse_source_contents;
impl Config {
pub async fn load_or_init() -> Result<Self> {