-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix clippy #803
Fix clippy #803
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of duplicating the MockHexBoostingClient
struct definition in each of the test files, couldn't you instead centralize the impl MockHexBoostingClient
new method in the tests/common
module? they appear to be identical.
perhaps that also solves the problem of the struct and the impl being in different places but without the amount of duplication? not sure why those new methods were implemented multiple times but that could certainly cause issues
I have tried and clippy is not happy:
But |
I would go with that approach and just slap a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you hate proper hygienic testing, Rust?
It seems like this version of Rust does not like to have
struct
andimpl
in different files.