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

Derive Clone trait for Sqids struct #6

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Derive Clone trait for Sqids struct #6

merged 1 commit into from
Feb 29, 2024

Conversation

Kab1r
Copy link
Contributor

@Kab1r Kab1r commented Feb 29, 2024

Add Clone trait to Sqids struct

This pull request introduces the Clone trait to the Sqids struct, allowing for copying of squid generators.

Changes:

  • The #[derive(Clone, Debug, Builder)] attribute is added to the Sqids struct definition, enabling the automatic implementation of the Clone trait alongside the existing Debug and Builder traits.

Benefits:

  • Simplified usage: Code using Sqids can now easily create independent copies.

@4kimov 4kimov merged commit 0a1e370 into sqids:main Feb 29, 2024
1 check failed
@4kimov
Copy link
Member

4kimov commented Feb 29, 2024

Thank you!

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