README's decode example uses `?` on an error that does not convert to `termlens::Error`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- documentation, testing
Research direction
Read the Rust snippets at README.md:168 and README.md:207, then check how the README examples are handled by the CI snippet gate mentioned in the issue. Make both blocks compile as shown, and confirm both compile; adding a CI gate is suggested but is not required by the stated done criteria.
Written by the indexing model from the issue text.
Description
What happens. README.md:207 calls image.decode()? in a plain ```rust block, and README.md:168 uses Regex::new(…)? in a rust,ignore block. In a consumer with every feature on, both fail with E0277: "? couldn't convert the error to termlens::Error". The only From conversion into termlens::Error is from io::Error. A reviewer compiled both. Every other README snippet and table accessor compiles.
Fix. Make the snippets compile: either a Box<dyn Error> return type, or .expect(…) with what the test would say. Better still, compile README's Rust blocks in CI as the skill's are (see the snippet gate).
Done when both blocks compile as shown.
- Dominant language
- Rust
- Stars
- 28
- Forks
- 24
- Avg merge
- 11h 23m
- Merged PRs (30d)
- 42
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from vyncint/termlens
-
documentation good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Maintainers usually reply within 1 day
-
Release notes show a broken link: `extract-changelog.sh` copies a reference but not its definitionOpenbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
All issues in vyncint/termlens
Similar issues
-
bug duplicate enhancement priority: low ui
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
storytold/pdfcraft#5594 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
open-jarvis/OpenJarvis#1212 ·
Maintainers usually reply within 4 days
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
CakeRepository/agentshangout#38 ·
Maintainers usually reply within 1 day