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

feat(lib): impl Clone for SpannedIter #317

Merged
merged 3 commits into from
Jun 24, 2023
Merged

Conversation

moenie99
Copy link
Contributor

I haven't done this before, I hope it is correct

@jeertmans
Copy link
Collaborator

Hello! Thanks for your PR!

Could you use the Derive macro instead?

Please make sure to pass rustfmt and clippy :)

@moenie99
Copy link
Contributor Author

deriving clone doesn't generate the Token::Extras: Clone bound that is necessary to get a Clone instance for Lexer

@jeertmans
Copy link
Collaborator

How yes my bad, just noticed Lexer’s clone was implemented the same way :)

Can you then fix Rustfmt?

@moenie99
Copy link
Contributor Author

i tried to figure it out but im not sure if i did it correctly as i never did this before, sorry. i did run rustfmt though

@jeertmans jeertmans changed the title added clone impl to SpannedIter feat(Mon: impl Clone for SpannedIter Jun 24, 2023
@jeertmans jeertmans changed the title feat(Mon: impl Clone for SpannedIter feat(lib): impl Clone for SpannedIter Jun 24, 2023
@jeertmans
Copy link
Collaborator

Look’s perfect! Thanks :)

@jeertmans jeertmans merged commit e2702f6 into maciejhirsz:master Jun 24, 2023
15 of 16 checks passed
@moenie99 moenie99 deleted the patch-1 branch June 24, 2023 10:39
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