IMPORTANT TWEAK: deduplicate returned values
This commit is contained in:
parent
c2e91cc4de
commit
7a9f40d12f
1 changed files with 3 additions and 1 deletions
|
@ -98,7 +98,9 @@ impl K2VItem {
|
||||||
let mut ret = vec![];
|
let mut ret = vec![];
|
||||||
for (_, ent) in self.items.iter() {
|
for (_, ent) in self.items.iter() {
|
||||||
for (_, v) in ent.values.iter() {
|
for (_, v) in ent.values.iter() {
|
||||||
ret.push(v);
|
if !ret.contains(&v) {
|
||||||
|
ret.push(v);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret
|
ret
|
||||||
|
|
Loading…
Reference in a new issue