Skip to content

fix(volo-http): avoid IntoResponse impl conflict with Infallible - #662

Open
Joshuahoky wants to merge 1 commit into
mainfrom
fix/infallible
Open

fix(volo-http): avoid IntoResponse impl conflict with Infallible#662
Joshuahoky wants to merge 1 commit into
mainfrom
fix/infallible

Conversation

@Joshuahoky

@Joshuahoky Joshuahoky commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Motivation

See #652

Solution

Added an opt in trait TryIntoResponseBody so that if the patch does happen, the compiler will not detect two different traits implementations for !. However this is a breaking change for existing downstream users using their own custom body types. Their code will fail to compile until they add the following
impl TryIntoResponseBody for MyBody {}

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.22%. Comparing base (52da49d) to head (b3401a4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #662      +/-   ##
==========================================
+ Coverage   51.21%   51.22%   +0.01%     
==========================================
  Files         163      163              
  Lines       21003    21000       -3     
==========================================
+ Hits        10756    10757       +1     
+ Misses      10247    10243       -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant