mirror of
https://github.com/rust-lang/cargo
synced 2024-10-02 14:04:23 +00:00
fix: remove unnecessary match bindings
Co-authored-by: Eric Huss <eric@huss.org>
This commit is contained in:
parent
dc5f530c5c
commit
c2fd499eac
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue