🎨 Apply cargo fmt formatting
This commit is contained in:
committed by
Jeremiah Russell
parent
10a1a1e058
commit
2b29382d5e
@@ -624,10 +624,10 @@ impl InitCli {
|
||||
rules_dir: &Path,
|
||||
) -> Result<()> {
|
||||
// Create rules directory if it doesn't exist and hasn't been planned already
|
||||
let already_planned = operations.iter().any(|op| {
|
||||
matches!(op, Operation::CreateDir { path, .. } if path == rules_dir)
|
||||
});
|
||||
|
||||
let already_planned = operations
|
||||
.iter()
|
||||
.any(|op| matches!(op, Operation::CreateDir { path, .. } if path == rules_dir));
|
||||
|
||||
if !rules_dir.exists() && !already_planned {
|
||||
operations.push(Operation::CreateDir {
|
||||
path: rules_dir.to_path_buf(),
|
||||
|
||||
Reference in New Issue
Block a user