mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
fix baseline diff
This commit is contained in:
parent
843edccf95
commit
6f80468b6d
1 changed files with 2 additions and 6 deletions
|
|
@ -98,13 +98,9 @@ impl PacketEntity {
|
||||||
baseline: &'a [SendProp],
|
baseline: &'a [SendProp],
|
||||||
) -> impl Iterator<Item = &'a SendProp> + 'a {
|
) -> impl Iterator<Item = &'a SendProp> + 'a {
|
||||||
baseline.iter().filter(move |prop| {
|
baseline.iter().filter(move |prop| {
|
||||||
match baseline
|
!baseline
|
||||||
.iter()
|
.iter()
|
||||||
.find(|base_prop| base_prop.index == prop.index)
|
.any(|base_prop| base_prop.index == prop.index && base_prop.value == prop.value)
|
||||||
{
|
|
||||||
Some(base_prop) => base_prop.value != prop.value,
|
|
||||||
None => true,
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue