From: gibix Date: Sat, 24 Mar 2018 19:04:02 +0000 (+0100) Subject: cargo fmt X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~2^2~6^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a6ad2de0484f1910d42793f3ec73b111403099b7;p=cargo.git cargo fmt --- diff --git a/src/cargo/sources/registry/index.rs b/src/cargo/sources/registry/index.rs index be03e5753..4c28d1733 100644 --- a/src/cargo/sources/registry/index.rs +++ b/src/cargo/sources/registry/index.rs @@ -186,7 +186,9 @@ impl<'cfg> RegistryIndex<'cfg> { let summaries = summaries.filter(|s| match source_id.precise() { Some(p) if p.starts_with(&*dep.name()) && p[dep.name().len()..].starts_with('=') => { let mut vers = p[dep.name().len() + 1..].splitn(2, "->"); - if dep.version_req().matches(&Version::parse(vers.next().unwrap()).unwrap()) { + if dep.version_req() + .matches(&Version::parse(vers.next().unwrap()).unwrap()) + { vers.next().unwrap() == s.version().to_string() } else { true