Use the thread builder and handle the spawn error

This commit is contained in:
mo8it
2024-09-06 15:40:25 +02:00
parent 9faa5d3aa4
commit 2d26358602
4 changed files with 34 additions and 13 deletions
+3
View File
@@ -10,4 +10,7 @@ disallowed-methods = [
"std::collections::HashSet::with_capacity",
# Inefficient. Use `.queue(…)` instead.
"crossterm::style::style",
# Use `thread::Builder::spawn` instead and handle the error.
"std::thread::spawn",
"std::thread::Scope::spawn",
]