fix: remove unnecessary match bindings

Co-authored-by: Eric Huss <eric@huss.org>
This commit is contained in:
Weihang Lo 2021-05-28 07:25:57 +08:00 committed by GitHub
parent dc5f530c5c
commit c2fd499eac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),