Empty's Body impl `Error = Infallible` makes `Empty::new()` unable to be used w/ Body constraints
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 173
- Forks
- 69
- Avg merge
- 6d 15h
- Merged PRs (30d)
- 4
Description
Empty has generic parameter for Data, so it would be nice to have a generic parameter for Error as well so that Empty::new() can be used w/ functions that set constraints on Body i.e B: Body<Error=..>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Empty and the Body trait, then trace how Empty::new() fixes its associated Error type. Check existing Body constraint tests or examples for the expected generic usage. Done means Empty::new() can satisfy a caller's Body<Error=...> constraint without breaking existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100