Skip to content

refactor: migrate all mod.rs files to parent-named module files#81

Merged
StudentWeis merged 1 commit into
mainfrom
refactor/80-mod-rs-to-parent-named
May 6, 2026
Merged

refactor: migrate all mod.rs files to parent-named module files#81
StudentWeis merged 1 commit into
mainfrom
refactor/80-mod-rs-to-parent-named

Conversation

@StudentWeis
Copy link
Copy Markdown
Owner

Summary

Migrate every src/<name>/mod.rs to the parent-named single-file form src/<name>.rs, satisfying the newly-denied clippy::mod_module_files lint. Purely mechanical rename — no behavior or API change.

Linked Issue

Closes #80

Changes

  • Rename 13 mod.rs files (via git mv, history preserved):
    • src/clipboard/mod.rssrc/clipboard.rs
    • src/config/mod.rssrc/config.rs
    • src/config/settings/mod.rssrc/config/settings.rs
    • src/gui/mod.rssrc/gui.rs
    • src/gui/board/mod.rssrc/gui/board.rs
    • src/gui/board/records_list/mod.rssrc/gui/board/records_list.rs
    • src/gui/board/settings_handler/mod.rssrc/gui/board/settings_handler.rs
    • src/gui/panel/mod.rssrc/gui/panel.rs
    • src/i18n/mod.rssrc/i18n.rs
    • src/repository/mod.rssrc/repository.rs
    • src/repository/tests/mod.rssrc/repository/tests.rs
    • src/updater/mod.rssrc/updater.rs
    • src/utils/mod.rssrc/utils.rs
  • Add mod_module_files = "deny" to Cargo.toml to keep this idiom enforced going forward.

Testing

  • scripts/precheck.sh passes locally (clippy clean, 421 tests passed, i18n/icons/themes OK)
  • No new tests needed — purely mechanical refactor with no behavior change

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
@StudentWeis StudentWeis merged commit 6bad84b into main May 6, 2026
8 checks passed
@StudentWeis StudentWeis deleted the refactor/80-mod-rs-to-parent-named branch May 7, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: migrate all mod.rs files to parent-named module files

1 participant