Skip to content

Commit 0a5c555

Browse files
committed
Simplify comparison a bit
1 parent dc73354 commit 0a5c555

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pineappl/src/evolution.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,9 @@ pub(crate) fn evolve_slice(
455455
let ops: Option<Box<[_]>> = izip!(pids0, pids1, &pids01, &eko_slices)
456456
.map(|(&pid0, &pid1, pids, slices)| {
457457
// for each convolution ...
458-
pids.iter().zip(slices).find_map(|(&(p0, p1), op)| {
458+
pids.iter().zip(slices).find_map(|(pid01, op)| {
459459
// find the EKO that matches both the FK-table and the grid PID
460-
((p0 == pid0) && (p1 == pid1)).then_some(op)
460+
(pid01 == &(pid0, pid1)).then_some(op)
461461
})
462462
})
463463
// if an EKO isn't found, it's zero and therefore the whole FK-table

0 commit comments

Comments
 (0)