Skip to content

Comments

fix(clippy): fix module_inception and allow lint#557

Merged
echobt merged 1 commit intomasterfrom
fix/module-inception-1770011038
Feb 2, 2026
Merged

fix(clippy): fix module_inception and allow lint#557
echobt merged 1 commit intomasterfrom
fix/module-inception-1770011038

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Feb 2, 2026

Summary

Fixes the module_inception Clippy lint that was triggered when workspace lints were inherited.

Changes

  1. cortex-storage/src/sessions/tests.rs: Removed redundant mod tests wrapper since the file is already named tests.rs
  2. Cargo.toml: Added module_inception = "allow" to workspace lints to prevent similar issues

Why

The module_inception lint warns when a module contains a submodule with the same name. After inheriting workspace lints, this lint became active and found an issue in the test file.

- Fix cortex-storage/sessions/tests.rs module inception issue
- Add module_inception = allow to workspace lints
@echobt echobt merged commit c0ce4f3 into master Feb 2, 2026
3 of 4 checks passed
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.

1 participant