fix: add --all to cargo fmt in script/test and autoformat codebase
cargo fmt without --all fails with "Failed to find targets" in workspace repos. This was blocking every story's gates. Also ran cargo fmt --all to fix all existing formatting issues. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+15
-4
@@ -168,8 +168,16 @@ mod tests {
|
||||
let entries = &result.0;
|
||||
|
||||
assert!(entries.len() >= 2);
|
||||
assert!(entries.iter().any(|e| e.name == "subdir" && e.kind == "dir"));
|
||||
assert!(entries.iter().any(|e| e.name == "file.txt" && e.kind == "file"));
|
||||
assert!(
|
||||
entries
|
||||
.iter()
|
||||
.any(|e| e.name == "subdir" && e.kind == "dir")
|
||||
);
|
||||
assert!(
|
||||
entries
|
||||
.iter()
|
||||
.any(|e| e.name == "file.txt" && e.kind == "file")
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
@@ -390,7 +398,11 @@ mod tests {
|
||||
let entries = &result.0;
|
||||
|
||||
assert!(entries.iter().any(|e| e.name == "adir" && e.kind == "dir"));
|
||||
assert!(entries.iter().any(|e| e.name == "bfile.txt" && e.kind == "file"));
|
||||
assert!(
|
||||
entries
|
||||
.iter()
|
||||
.any(|e| e.name == "bfile.txt" && e.kind == "file")
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
@@ -403,5 +415,4 @@ mod tests {
|
||||
let result = api.list_directory(payload).await;
|
||||
assert!(result.is_err());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user