mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 00:43:50 +00:00
Downgrade applicability of create_dir
This commit is contained in:
parent
eebd248365
commit
5b7590f841
@ -42,7 +42,7 @@ impl LateLintPass<'_> for CreateDir {
|
||||
"calling `std::fs::create_dir` where there may be a better way",
|
||||
"consider calling `std::fs::create_dir_all` instead",
|
||||
format!("std::fs::create_dir_all({})", snippet(cx, args[0].span, "..")),
|
||||
Applicability::MachineApplicable,
|
||||
Applicability::MaybeIncorrect,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user