Skip to content

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

style(tests): reformat scan_files signature and call site

Steven Enamakelc6cedc3d7c3c
diff --git a/tests/saas_isolation/scan.rs b/tests/saas_isolation/scan.rs
index 7c98ebc366..74e1d5358f 100644
--- a/tests/saas_isolation/scan.rs
+++ b/tests/saas_isolation/scan.rs
@@ -51,11 +51,7 @@ fn owner_of(root: &Path, path: &Path) -> Option<usize> {
/// tree, any user's outside every user's tree (the operator plane, shared
/// state, the child's `$HOME`). Returns the violations and, per user, how
/// many of their own files carry their canaries (proof the scan saw data).
-pub fn scan_files(
- root: &Path,
- home: &Path,
- shared_storage: &Path,
-) -> (Vec<String>, [usize; 3]) {
+pub fn scan_files(root: &Path, home: &Path, shared_storage: &Path) -> (Vec<String>, [usize; 3]) {
let mut violations = Vec::new();
let mut own = [0usize; 3];
for base in [root, home] {
diff --git a/tests/saas_profile_isolation_e2e.rs b/tests/saas_profile_isolation_e2e.rs
index 4fb6cc4e3d..49f2bb8631 100644
--- a/tests/saas_profile_isolation_e2e.rs
+++ b/tests/saas_profile_isolation_e2e.rs
@@ -379,11 +379,8 @@ fn random_cross_profile_calls_never_leak() {
per_user.iter().all(|&n| n > 0),
"every user reached inference: {per_user:?}"
);
- let (violations, own) = scan::scan_files(
- &d.root,
- d.tmp.path(),
- &d.tmp.path().join("saas-storage.db"),
- );
+ let (violations, own) =
+ scan::scan_files(&d.root, d.tmp.path(), &d.tmp.path().join("saas-storage.db"));
if !violations.is_empty() {
w.fail(&format!(
"files hold other profiles' canaries:\n{}",