Remove unnecessary call

This commit is contained in:
Matthias Beyer 2018-06-19 21:23:52 -03:00
parent 3bdd5c959b
commit 54c5854761

View file

@ -157,14 +157,13 @@ impl StoreId {
self.id self.id
.components() .components()
.zip(colls.as_ref().iter()) .zip(colls.as_ref().iter())
.map(|(component, pred_coll)| match component { .all(|(component, pred_coll)| match component {
Component::Normal(ref s) => s Component::Normal(ref s) => s
.to_str() .to_str()
.map(|ref s| s == &pred_coll.as_ref()) .map(|ref s| s == &pred_coll.as_ref())
.unwrap_or(false), .unwrap_or(false),
_ => false _ => false
}) })
.all(|x| x)
} }
pub fn local_push<P: AsRef<Path>>(&mut self, path: P) { pub fn local_push<P: AsRef<Path>>(&mut self, path: P) {