Skip to content

Commit c2fd499

Browse files
weihangloehuss
andauthored
fix: remove unnecessary match bindings
Co-authored-by: Eric Huss <[email protected]>
1 parent dc5f530 commit c2fd499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/cargo/commands/tree.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,12 @@ fn parse_edge_kinds(
271271
"no-build" => result.remove(&EdgeKind::Dep(DepKind::Build)),
272272
"no-dev" => result.remove(&EdgeKind::Dep(DepKind::Development)),
273273
"features" => result.insert(EdgeKind::Feature),
274-
k @ "normal" | k @ "build" | k @ "dev" | k @ "all" => {
274+
"normal" | "build" | "dev" | "all" => {
275275
bail!(
276276
"`{}` dependency kind cannot be mixed with \
277277
\"no-normal\", \"no-build\", or \"no-dev\" \
278278
dependency kinds",
279-
k
279+
kind
280280
)
281281
}
282282
k => return unknown(k),

0 commit comments

Comments
 (0)