Skip to content

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

style: reformat long lines in import tests and tinyjuice reader

Steven Enamakeld1ba1d66e1d7
diff --git a/crates/openhuman-core/src/modules/import_once_tests.rs b/crates/openhuman-core/src/modules/import_once_tests.rs
index 0b1c7b30f4..98aa652889 100644
--- a/crates/openhuman-core/src/modules/import_once_tests.rs
+++ b/crates/openhuman-core/src/modules/import_once_tests.rs
@@ -30,7 +30,10 @@ async fn a_concurrent_caller_waits_for_the_running_import() {
flag.load(std::sync::atomic::Ordering::SeqCst)
};
let (_, saw_finished) = tokio::join!(first, second);
- assert!(saw_finished, "second caller returned before the import ended");
+ assert!(
+ saw_finished,
+ "second caller returned before the import ended"
+ );
}
#[tokio::test]
diff --git a/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs b/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs
index 928990f829..5cbfdf9252 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs
@@ -166,8 +166,8 @@ fn read_originals(root: &Path, now: SystemTime) -> Result<(Vec<LegacyOriginal>,
};
let path = entry.path();
// Never follow a link: it could point outside the CCR directory.
- let meta = std::fs::symlink_metadata(&path)
- .with_context(|| format!("stat {}", path.display()))?;
+ let meta =
+ std::fs::symlink_metadata(&path).with_context(|| format!("stat {}", path.display()))?;
if !meta.file_type().is_file() {
skipped += 1;
continue;