Repository navigation
refactor(render): split layout.rs into a layout module (#3068) - #3073
jgregoriorincon merged 1 commit into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewPure file split of Bugs: None found. Checked:
Security: None. No new I/O, parsing or external input. Performance: None. The split adds no runtime work. Compile-time impact is not measured. Quality:
AGENTS.md: None. The "Suggested AGENTS.md additions" line in the PR body is for the maintainer to decide and is not a rule break. Already raised: 0 earlier concerns, since Change sizeCompared with the base branch (merge base 25d0786 to PR head 70fcc92), the whole PR. Trees were not truncated.
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Summary
Splits
crates/render/src/layout.rsinto alayoutmodule, with no change in behaviour, so that changes to different layout elements stop editing the same file.layout.rsdraw_page) and the helpers several elements sharelayout/legend.rs,swatch.rslayout/chart.rs,table.rs,colorbar.rs,scale_bar.rs,north.rs,textbox.rslayout/frame.rs,grid.rs,coverage.rslayout/dynamic_text.rs,losses.rslayout/tests.rsmod tests, wholeHow to review:
git diff --color-moved=dimmed-zebra --color-moved-ws=allow-indentation-change main...HEAD.layout.rsre-exports each submodule, sorustgis_render::layout::…andcrate::layout::…paths are unchanged and no file outside the module changes.pub(super)(visible to thelayoutmodule, as they were to the file), and the rewrappingcargo fmtdoes after that and after the tests lose one level of indentation. String literals are not re-indented.//!doc comment anduse super::*;.The script (run from the repository root, on a checkout with the unsplit file)
Suggested AGENTS.md additions: new layout drawing tests go in
crates/render/src/layout/tests/<topic>.rs, not at the end oflayout/tests.rs.Testing
On this commit, on Linux:
cargo nextest list -p rustgis-rendergives the same list before and after the script (178 tests underlayout::tests::).cargo nextest run --workspace(all but the two local DuckDB tests, which don't run on this machine): 9880 passed, 29 skipped; doctests pass.cargo fmt --all --check,cargo clippy -p rustgis-render --all-targets -- -D warnings,cargo xtask layers,cargo xtask schema --check(with its clippy on the schema feature),cargo xtask test-hygieneandcargo xtask rowspass.RUSTFLAGS='-D warnings' cargo build --locked --target wasm32-unknown-unknown -p rustgis-webpasses.Reach: no behaviour changes on any surface (desktop, browser, command line, Python, phone), and no command, parameter, project format or interface text changes.
UI evidence
No visible UI change.
Related issue
Closes #3068
Summary by CodeRabbit