Skip to content

Commit 3ef3a13

Browse files
committed
Auto merge of rust-lang#12747 - flip1995:clippy-dev-cli-derive, r=Alexendoo
Type safe CLI implementation for clippy-dev Use the derive feature of `clap` to generate CLI of clippy-dev. Adding new commands will be easier in the future and we get better compile time checking through exhaustive matching. --- I think I tested everything locally. But I would appreciate if the reviewer could go over it again, so that everything keeps working. changelog: none
2 parents 2800251 + 537ab6c commit 3ef3a13

File tree

6 files changed

+266
-329
lines changed

6 files changed

+266
-329
lines changed

clippy_dev/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[package]
22
name = "clippy_dev"
3+
description = "Clippy developer tooling"
34
version = "0.0.1"
45
edition = "2021"
56

67
[dependencies]
78
aho-corasick = "1.0"
8-
clap = "4.1.4"
9+
clap = { version = "4.4", features = ["derive"] }
910
indoc = "1.0"
1011
itertools = "0.12"
1112
opener = "0.6"

0 commit comments

Comments
 (0)