Skip to content

Commit 5b7590f

Browse files
committed
Downgrade applicability of create_dir
1 parent eebd248 commit 5b7590f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/create_dir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl LateLintPass<'_> for CreateDir {
4242
"calling `std::fs::create_dir` where there may be a better way",
4343
"consider calling `std::fs::create_dir_all` instead",
4444
format!("std::fs::create_dir_all({})", snippet(cx, args[0].span, "..")),
45-
Applicability::MachineApplicable,
45+
Applicability::MaybeIncorrect,
4646
)
4747
}
4848
}

0 commit comments

Comments
 (0)