imag/lib/core/libimagstore/src
Matthias Beyer 0916c92a18 Bugfix: Rebuild iterator when changing collection
This patch fixes a bug where the following code (here pseudocode) did
the wrong thing:

    store.entries().in_collection("foo").for_each(||...)

because the `.in_collection()` call for the underlying PathIterator
object did not actually re-build the iterator. It only changed the
contained `PathIterBuilder`, but did not call `.build_iter()` on it to
rebuild the iterator object.

The test added with this patch checks whether the iterator does the
right thing.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-15 18:29:15 +01:00
..
file_abstraction Bugfix: Rebuild iterator when changing collection 2019-02-15 18:29:15 +01:00
configuration.rs Update copyright years 2019-01-03 18:41:36 +01:00
iter.rs Bugfix: Rebuild iterator when changing collection 2019-02-15 18:29:15 +01:00
lib.rs Update copyright years 2019-01-03 18:41:36 +01:00
store.rs Update copyright years 2019-01-03 18:41:36 +01:00
storeid.rs Update copyright years 2019-01-03 18:41:36 +01:00
util.rs Update copyright years 2019-01-03 18:41:36 +01:00