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

Fixed clippy::incorrect_clone_impl_on_copy_type in fixed-hash #767

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

svyatonik
Copy link
Contributor

There's this new lint: https://rust-lang.github.io/rust-clippy/master/index.html#/incorrect_clone_impl_on_copy_type which causes clippy failures in nightly builds. TLDR: if type is Copy, then Clone impl must be just *self

Copy link
Member

@ordian ordian left a comment

Choose a reason for hiding this comment

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

Thanks!

@ordian ordian merged commit d3a9327 into master Jul 12, 2023
5 checks passed
@ordian ordian deleted the sv-use-copy-instead-of-manual-clone branch July 12, 2023 10:34
ngotchac added a commit to ngotchac/reth that referenced this pull request Jul 27, 2023
error: incorrect implementation of `clone` on a `Copy` type
cf. paritytech/parity-common#767
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants