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 Extension<NonCloneType> debug_handler ui test #2731

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jplatte
Copy link
Member

@jplatte jplatte commented May 6, 2024

Motivation

#2294 indicates that the error message for T: Clone constraint on Extension<T>'s FromRequestParts impl being unmet is bad even with #[debug_handler]. I decided to check and found that's false.

Solution

Add a test to make sure we don't regress.

Closes #2294.
Supersedes #2301.

@jplatte

This comment was marked as resolved.

Co-authored-by: Logan Nielsen <loganbn@amazon.com>
@jplatte jplatte force-pushed the jplatte/debug-handler-extension-not-clone branch from 9cc9c7d to 758fe1b Compare May 7, 2024 19:35
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.

Add special handling of Extension and Clone for debug_handler
2 participants