aboutsummaryrefslogtreecommitdiff
path: root/common/object/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/object/src/lib.rs')
-rw-r--r--common/object/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/object/src/lib.rs b/common/object/src/lib.rs
index aadd306..28a4750 100644
--- a/common/object/src/lib.rs
+++ b/common/object/src/lib.rs
@@ -181,11 +181,11 @@ impl Object {
) -> Box<Object> {
let ident = TypedTag::<[u8]>::new(ident);
let mut new_vals = Vec::new();
- for ob in self.iter(tag) {
- new_vals.push(ob);
+ for ob in values {
+ new_vals.push(&**ob);
}
let mut any_new = false;
- for val in values {
+ for val in self.iter(tag) {
if new_vals.iter().all(|rhs| rhs.get(ident) != val.get(ident)) {
any_new = true;
new_vals.push(val);