mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-11 16:17:54 +02:00
lint: Clarify rmtree/remove_all error message with preferred alternatives
This commit is contained in:
@@ -139,7 +139,8 @@ pub fn lint_remove_all() -> LintResult {
|
||||
.success();
|
||||
if found {
|
||||
Err(r#"
|
||||
Use of fs::remove_all or std::filesystem::remove_all is dangerous and should be avoided.
|
||||
Use of fs::remove_all or std::filesystem::remove_all is dangerous and should be avoided. If removal
|
||||
is required, prefer fs::remove.
|
||||
"#
|
||||
.trim()
|
||||
.to_string())
|
||||
|
||||
Reference in New Issue
Block a user