Uri's Debug implementation should show components
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 378
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 5
Description
Right now Uri's implementation of the Debug trait calls out to its Display implementation. This makes it hard to use the Debug trait to check what has been parsed into the various fields of the Uri, because those fields get concatenated together by the Display trait.
I think a #[derive(Debug)] would do the job nicely. Is there some history I'm missing about why the Debug method calls out to Display?
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 reading the Uri implementation in uri/mod.rs, especially the Debug and Display implementations referenced by the issue. Check existing Uri tests, then verify that Debug exposes the parsed components rather than the concatenated Display form.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100