Skip to content

Remove Clone derivations from SetMultipleResponseHeader* types - #714

Merged
jlizen merged 1 commit into
tower-rs:mainfrom
skeet70:713-response-clone-fix
Jul 15, 2026
Merged

Remove Clone derivations from SetMultipleResponseHeader* types#714
jlizen merged 1 commit into
tower-rs:mainfrom
skeet70:713-response-clone-fix

Conversation

@skeet70

@skeet70 skeet70 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Motivation

This allows downstream consumers to not be impacted by uneccesary Clone bounds.

Includes a regression test that simplifies the reproduction case, fails to compile without the fix, and succeeds with it.

Solution

Apply the same fix as #703 to Response types as well, using the more narrow and accurate Clone definition vs the derived Clone one.

Fixes: #713

This allows downstream consumers to not be impacted by unneccesary Clone
bounds.

Fixes: tower-rs#713

@jlizen jlizen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@jlizen
jlizen merged commit 44bed48 into tower-rs:main Jul 15, 2026
16 checks passed
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.

SetMultipleResponseHeaders still creates a clone constraint on the response body

3 participants