summaryrefslogtreecommitdiff
path: root/clippy.toml
blob: 2a981849bbbc396968ffe3d61cb3aab0ff00c8ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
disallowed-types = [
  # Inefficient. Use `.queue(…)` instead.
  "crossterm::style::Stylize",
  "crossterm::style::styled_content::StyledContent",
]

disallowed-methods = [
  # 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",
  # Return `ExitCode` instead.
  "std::process::exit",
]