An attribute selection affects the initialization, hence it should be added first.
Unified · Split
| @@ -54,8 +54,6 @@ impl Outcome { · 53 unmodified lines | ||
| 54 | 54 | collection: &MetadataCollection, |
| 55 | 55 | attribute_names: &mut dyn Iterator<Item = KStringRef<'_>>, |
| 56 | 56 | ) { |
| 57 | − self.initialize(collection); | |
| 58 | − | |
| 59 | 57 | self.selected.clear(); |
| 60 | 58 | self.selected.extend(attribute_names.map(|name| { |
| 61 | 59 | ( |
| @@ -63,6 +61,8 @@ impl Outcome { · 1 unmodified line | ||
| 63 | 61 | collection.name_to_meta.get(name.as_str()).map(|meta| meta.id), |
| 64 | 62 | ) |
| 65 | 63 | })); |
| 64 | + | |
| 65 | + self.initialize(collection); | |
| 66 | 66 | self.reset_remaining(); |
| 67 | 67 | } |
| 68 | 68 | |