Repository navigation
fix(layout): main builds again: pass legend_sizes_mm its excluded layers and labels - #1751
Conversation
#1725 added a call to legend_sizes_mm with an empty slice for its last argument while #1739 changed that argument to a pair of the excluded layers and the labels, so main no longer builds. The call measures the legend at another scale, so it passes the same empty pair as the measurement at the asked scale above it.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewReviewed the one-line change in
I could not build, run clippy or run the tests here (no Bash access). The PR's claims that clippy is clean and that 52 engine tests pass are unverified. The reasoning above comes from reading the code. No inline comments were posted. Prior reviews: the PR has no review threads, so no earlier concerns were left alone. Change sizeCompared with the base branch (whole PR, merge base 0c44ff6 to head 3f79b37).
|
maindoesn't build:rustgis-enginefails with E0308 atcrates/engine/src/cmd/layout.rs:1992. #1725 added a call tolegend_sizes_mm(…, &[]), and #1739 (merged alongside it) changed that last parameter to a pair(exclude, labels). Each PR's CI passed on its own; together they don't compile. Every PR's CI is red until this lands (seen on #1748).The call measures the legend at another scale while searching for one where it fits, so it passes the same
(&[], &Default::default())as the measurement at the asked scale in the same function (line 1805). One line;cargo clippy -p rustgis-engine --all-targets -D warningsis clean and the engine's layout and legend tests pass (52).Summary by CodeRabbit