Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

axum-macros: move from_request.rs to from_request/mod.rs #3163

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

mladedav
Copy link
Collaborator

@mladedav mladedav commented Jan 8, 2025

Motivation

We want to use mod.rs if we already have a directory with the same name.

Solution

Move the file.

Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like how most of the diff is about files that clippy had false-positives on. Let's just rename the axum-macros file and not enable the lint for now?

Found some existing bug reports, this one has most detail I think: rust-lang/rust-clippy#11916

@mladedav mladedav force-pushed the dm/self-named-module-files-lint branch 2 times, most recently from 44fb6ff to e6cc5f2 Compare January 8, 2025 20:54
@mladedav
Copy link
Collaborator Author

mladedav commented Jan 8, 2025

Yeah, I agree.

@mladedav mladedav force-pushed the dm/self-named-module-files-lint branch from e6cc5f2 to 477c36a Compare January 8, 2025 20:57
@mladedav mladedav force-pushed the dm/self-named-module-files-lint branch from 477c36a to 539b592 Compare January 8, 2025 20:58
Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would make sense to also change the PR title.

@mladedav mladedav changed the title Turn on the self named module files lint axum-macros: move from_request.rs to from_request/mod.rs Jan 8, 2025
@mladedav mladedav merged commit 4f11b45 into main Jan 8, 2025
18 checks passed
@mladedav mladedav deleted the dm/self-named-module-files-lint branch January 8, 2025 21:08
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.

2 participants