IMPORTANT TWEAK: deduplicate returned values
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Alex 2022-04-27 11:05:29 +02:00
parent c2e91cc4de
commit 7a9f40d12f
Signed by: lx
GPG key ID: 0E496D15096376BE

View file

@ -98,9 +98,11 @@ 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() {
if !ret.contains(&v) {
ret.push(v); ret.push(v);
} }
} }
}
ret ret
} }