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

Merged
merged 1 commit into from
Jun 9, 2024

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 jplatte force-pushed the jplatte/debug-handler-extension-not-clone branch from 06b8d45 to 9cc9c7d Compare May 6, 2024 22:36
@jplatte

This comment was marked as resolved.

@jplatte jplatte force-pushed the jplatte/debug-handler-extension-not-clone branch from 9cc9c7d to 758fe1b Compare May 7, 2024 19:35
@davidpdrsn davidpdrsn merged commit 34e11c5 into main Jun 9, 2024
18 checks passed
@davidpdrsn davidpdrsn deleted the jplatte/debug-handler-extension-not-clone branch June 9, 2024 18:17
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
3 participants