From 54c58547610a02781ed3cc439929f74bc9f7628c Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 19 Jun 2018 21:23:52 -0300 Subject: [PATCH] Remove unnecessary call --- lib/core/libimagstore/src/storeid.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core/libimagstore/src/storeid.rs b/lib/core/libimagstore/src/storeid.rs index 66a94c49..ddb1443e 100644 --- a/lib/core/libimagstore/src/storeid.rs +++ b/lib/core/libimagstore/src/storeid.rs @@ -157,14 +157,13 @@ impl StoreId { self.id .components() .zip(colls.as_ref().iter()) - .map(|(component, pred_coll)| match component { + .all(|(component, pred_coll)| match component { Component::Normal(ref s) => s .to_str() .map(|ref s| s == &pred_coll.as_ref()) .unwrap_or(false), _ => false }) - .all(|x| x) } pub fn local_push>(&mut self, path: P) {