2024-08-25 22:54:04 +01:00
|
|
|
disallowed-types = [
|
|
|
|
# Inefficient. Use `.queue(…)` instead.
|
|
|
|
"crossterm::style::Stylize",
|
|
|
|
"crossterm::style::styled_content::StyledContent",
|
|
|
|
]
|
|
|
|
|
|
|
|
disallowed-methods = [
|
|
|
|
# We use `ahash` instead of the default hasher.
|
|
|
|
"std::collections::HashSet::new",
|
|
|
|
"std::collections::HashSet::with_capacity",
|
|
|
|
# Inefficient. Use `.queue(…)` instead.
|
|
|
|
"crossterm::style::style",
|
2024-09-06 14:40:25 +01:00
|
|
|
# Use `thread::Builder::spawn` instead and handle the error.
|
|
|
|
"std::thread::spawn",
|
|
|
|
"std::thread::Scope::spawn",
|
2024-10-13 21:02:41 +01:00
|
|
|
# Return `ExitCode` instead.
|
|
|
|
"std::process::exit",
|
2024-08-25 22:54:04 +01:00
|
|
|
]
|