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

Add OptionalPath extractor #1889

Merged
merged 4 commits into from
Apr 9, 2023
Merged

Add OptionalPath extractor #1889

merged 4 commits into from
Apr 9, 2023

Conversation

jplatte
Copy link
Member

@jplatte jplatte commented Mar 27, 2023

Motivation

Resolves #1884.

Solution

What was already written on the issue 😄

I also had to add kind() to FailedToDeserializePathParams. I don't think we should really have both kind() and into_kind() but I wasn't too sure what it should look like and went for roughly the path of least resistance (it would have been easier to return &ErrorKind but I'm guessing we don't want to guarantee that the rejection holds an ErrorKind).

@jplatte jplatte requested a review from davidpdrsn March 27, 2023 17:03
Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

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

Changelog?

axum-extra/src/extract/optional_path.rs Outdated Show resolved Hide resolved
@davidpdrsn
Copy link
Member

I'll do the last view changes now.

@davidpdrsn davidpdrsn enabled auto-merge (squash) April 9, 2023 12:07
@davidpdrsn davidpdrsn merged commit 43b2d52 into main Apr 9, 2023
@davidpdrsn davidpdrsn deleted the jplatte/optional-path branch April 9, 2023 12:23
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.

OptionalPath extractor
2 participants