implement clippy suggestion to remove redundant clone

This commit is contained in:
Igor Makarov 2019-11-10 15:35:29 +02:00
parent e8a8f76432
commit 1c5861c8b4

View File

@ -234,7 +234,7 @@ fn pub_fail() {
pkg!(("e", "0.0.6") => [dep_req_kind("a", "<= 0.0.4", Kind::Normal, true),]),
pkg!(("kB", "0.0.3") => [dep_req("a", ">= 0.0.5"),dep("e"),]),
];
let reg = registry(input.clone());
let reg = registry(input);
assert!(resolve_and_validated(vec![dep("kB")], &reg, None).is_err());
}