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