summaryrefslogtreecommitdiff
path: root/clippy.toml
blob: 4a5dd06a6c4255f6c63dadc0ecbe211c62581e4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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",
  # Use `thread::Builder::spawn` instead and handle the error.
  "std::thread::spawn",
  "std::thread::Scope::spawn",
]