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

Remove unnecessary Clone trait bounds #830

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

svix-gabriel
Copy link
Contributor

@svix-gabriel svix-gabriel commented Feb 9, 2023

Motivation

While working on some new endpoints, I was surprised/annoyed that I needed to implement Clone for the various structs used in the axum handler.

Turns out, we don't need it at all. So I'm removing the unnecessary trait bound. We can probably remove #[derive(Clone)] from a bunch of structs in our v1 folder, but that's for another day.

Solution

Remove the unnecessary trait bound.

@svix-gabriel svix-gabriel marked this pull request as ready for review February 9, 2023 14:27
@svix-gabriel svix-gabriel merged commit ac8dddf into main Feb 9, 2023
@svix-gabriel svix-gabriel deleted the gabriel/unnecessary-clone branch February 9, 2023 14:34
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.

None yet

2 participants