Downgrade applicability of create_dir

This commit is contained in:
Hirochika Matsumoto 2020-08-29 14:20:01 +09:00
parent eebd248365
commit 5b7590f841

View file

@ -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,
)
}
}