🎨 Apply cargo fmt formatting

This commit is contained in:
Jeremiah Russell
2025-10-21 22:17:13 +01:00
committed by Jeremiah Russell
parent 10a1a1e058
commit 2b29382d5e

View File

@@ -624,10 +624,10 @@ impl InitCli {
rules_dir: &Path, rules_dir: &Path,
) -> Result<()> { ) -> Result<()> {
// Create rules directory if it doesn't exist and hasn't been planned already // Create rules directory if it doesn't exist and hasn't been planned already
let already_planned = operations.iter().any(|op| { let already_planned = operations
matches!(op, Operation::CreateDir { path, .. } if path == rules_dir) .iter()
}); .any(|op| matches!(op, Operation::CreateDir { path, .. } if path == rules_dir));
if !rules_dir.exists() && !already_planned { if !rules_dir.exists() && !already_planned {
operations.push(Operation::CreateDir { operations.push(Operation::CreateDir {
path: rules_dir.to_path_buf(), path: rules_dir.to_path_buf(),