summaryrefslogtreecommitdiff
path: root/clippy.toml
blob: 89b0a886f7d3daa85a574f71de181d074c513dda (plain)
1
2
3
4
5
6
7
8
9
10
11
disallowed-types = [
  { path = "crossterm::style::Stylize", reason = "inefficient, use `.queue(…)` instead" },
  { path = "crossterm::style::styled_content::StyledContent", reason = "inefficient, use `.queue(…)` instead" },
]

disallowed-methods = [
  { path = "crossterm::style::style", reason = "inefficient, use `.queue(…)` instead" },
  { path = "std::thread::spawn", replacement = "std::thread::Builder::spawn", reason = "handle the error" },
  { path = "std::thread::Scope::spawn", replacement = "std::thread::Builder::spawn", reason = "handle the error" },
  { path = "std::process::exit", replacement = "std::process::ExitCode" },
]