Skip to content

Commit

Permalink
fix: remove unnecessary match bindings
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Huss <eric@huss.org>
  • Loading branch information
weihanglo and ehuss authored May 27, 2021
1 parent dc5f530 commit c2fd499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/cargo/commands/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,12 @@ fn parse_edge_kinds(
"no-build" => result.remove(&EdgeKind::Dep(DepKind::Build)),
"no-dev" => result.remove(&EdgeKind::Dep(DepKind::Development)),
"features" => result.insert(EdgeKind::Feature),
k @ "normal" | k @ "build" | k @ "dev" | k @ "all" => {
"normal" | "build" | "dev" | "all" => {
bail!(
"`{}` dependency kind cannot be mixed with \
\"no-normal\", \"no-build\", or \"no-dev\" \
dependency kinds",
k
kind
)
}
k => return unknown(k),
Expand Down

0 comments on commit c2fd499

Please sign in to comment.