rustlings/clippy.toml

19 lines
558 B
TOML
Raw Normal View History

disallowed-types = [
# Inefficient. Use `.queue(…)` instead.
"crossterm::style::Stylize",
"crossterm::style::styled_content::StyledContent",
]
disallowed-methods = [
2024-10-14 14:24:42 +01:00
# We use `foldhash` instead of the default hasher.
"std::collections::HashSet::new",
"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",
2024-10-13 21:02:41 +01:00
# Return `ExitCode` instead.
"std::process::exit",
]