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,7 +98,9 @@ impl K2VItem {
let mut ret = vec![];
for (_, ent) in self.items.iter() {
for (_, v) in ent.values.iter() {
ret.push(v);
if !ret.contains(&v) {
ret.push(v);
}
}
}
ret