diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2018-06-19 21:23:52 -0300 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2018-06-23 21:56:03 +0200 |
commit | 54c58547610a02781ed3cc439929f74bc9f7628c (patch) | |
tree | 96e55e98143432d46599a51d3ed2d2a06f80a9a2 /lib | |
parent | 3bdd5c959be8426ad2a22ab4e3ce1082050917b9 (diff) |
Remove unnecessary call
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/libimagstore/src/storeid.rs | 3 |
1 files changed, 1 insertions, 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<P: AsRef<Path>>(&mut self, path: P) { |