diff options
| author | mo8it <mo8it@proton.me> | 2024-09-06 15:40:25 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-09-06 15:40:25 +0200 |
| commit | 2d26358602fc1cd0a026f634b38c34e7b4618cc9 (patch) | |
| tree | 423b6efab39073fcf8d4021374fa87c15c2a0f01 /clippy.toml | |
| parent | 9faa5d3aa48f7a94ed87e61ad6ea659579f1311a (diff) | |
Use the thread builder and handle the spawn error
Diffstat (limited to 'clippy.toml')
| -rw-r--r-- | clippy.toml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clippy.toml b/clippy.toml index 81e372a..4a5dd06 100644 --- a/clippy.toml +++ b/clippy.toml @@ -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", ] |
