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

Derived Clone for router types #232

Merged
merged 2 commits into from
Sep 11, 2021
Merged

Derived Clone for router types #232

merged 2 commits into from
Sep 11, 2021

Conversation

arctic-hen7
Copy link
Contributor

This just derives the Clone trait for the sycamore-router types Segment, Capture, and RoutePath, which makes it much easier to work with the routing internals. This is different to #231 in that it operated on v0.5.2 instead of master!

This fixes #230.

Specifically `Segment`, `RoutePath`, and `Capture`.
@lukechu10 lukechu10 added the A-router Area: router label Sep 11, 2021
@lukechu10
Copy link
Member

I hope to release 0.6 soon so this will be part of the next release.

@lukechu10
Copy link
Member

lgtm, thanks for contributing!

@lukechu10 lukechu10 merged commit a394a69 into sycamore-rs:master Sep 11, 2021
@arctic-hen7
Copy link
Contributor Author

Fantastic, thanks! My pleasure, all three lines!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-router Area: router
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segment should implement Clone
2 participants