refactor: migrate all mod.rs files to parent-named module files#81
Merged
Conversation
Rename every src/<name>/mod.rs to src/<name>.rs to satisfy the clippy::mod_module_files lint (now denied in Cargo.toml). Purely mechanical move with no behavior or API change. Refs #80
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate every
src/<name>/mod.rsto the parent-named single-file formsrc/<name>.rs, satisfying the newly-deniedclippy::mod_module_fileslint. Purely mechanical rename — no behavior or API change.Linked Issue
Closes #80
Changes
mod.rsfiles (viagit mv, history preserved):src/clipboard/mod.rs→src/clipboard.rssrc/config/mod.rs→src/config.rssrc/config/settings/mod.rs→src/config/settings.rssrc/gui/mod.rs→src/gui.rssrc/gui/board/mod.rs→src/gui/board.rssrc/gui/board/records_list/mod.rs→src/gui/board/records_list.rssrc/gui/board/settings_handler/mod.rs→src/gui/board/settings_handler.rssrc/gui/panel/mod.rs→src/gui/panel.rssrc/i18n/mod.rs→src/i18n.rssrc/repository/mod.rs→src/repository.rssrc/repository/tests/mod.rs→src/repository/tests.rssrc/updater/mod.rs→src/updater.rssrc/utils/mod.rs→src/utils.rsmod_module_files = "deny"toCargo.tomlto keep this idiom enforced going forward.Testing
scripts/precheck.shpasses locally (clippy clean, 421 tests passed, i18n/icons/themes OK)