refactor(MergedTree): take &Leader in methods to avoid derefs #498

Merged
ada4a merged 7 commits from ada4a/mergiraf:merged-tree-ref-leader into main 2025-07-12 12:37:03 +02:00
Owner

Even though Leader is Copy and dereferencing it is theoretically fine, the sheer number of places where we do so was a bit disturbing. Turns out accepting &Leader in the methods allows removing almost all of the derefs, so I did just that.

Depends on #497, since there are changes to {print,postprocess}.rs, which were moved/created by that PR

Even though `Leader` is `Copy` and dereferencing it is theoretically fine, the sheer number of places where we do so was a bit disturbing. Turns out accepting `&Leader` in the methods allows removing almost all of the derefs, so I did just that. Depends on #497, since there are changes to `{print,postprocess}.rs`, which were moved/created by that PR
mv merge_postprocessor to posprocess
All checks were successful
/ test (pull_request) Successful in 40s
85e43ad493
ada4a force-pushed merged-tree-ref-leader from b61d1c705b to 1430fd46c1 2025-07-11 20:48:56 +02:00 Compare
wetneb approved these changes 2025-07-12 09:58:24 +02:00
ada4a merged commit 2b5c3275a4 into main 2025-07-12 12:37:03 +02:00
ada4a deleted branch merged-tree-ref-leader 2025-07-12 12:37:05 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mergiraf/mergiraf#498
No description provided.