MatMoore / MatMoore/string-inspector
DecodedString::decode should not fail
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Currently this returns a `Result`. But we're giving it the `Replace` DecoderTrap, so it should be able to continue processing in the event of an error. Is this the case?
If so, we should unwrap this and simplify the API.
See also: https://github.com/MatMoore/string-inspector/issues/6
Contributor guide
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
Locate the DecodedString::decode entry point and inspect how the Replace DecoderTrap is passed to decoding. Check the related issue #6 for context, then determine whether error recovery makes the Result unnecessary. Done means the API decision is confirmed and covered by the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100