CandidType derived on Enums gives an unused variable warning
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 301
- Forks
- 85
- Avg merge
- 1h 4m
- Merged PRs (30d)
- 4
Description
I'm getting Rust warnings from the CandidType derive macro, only on enums and records with no fields.
Not a huge issue but there's a lot of yellow squiggles all over my VSCode.
Thanks!
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
Reproduce the warning with the CandidType derive macro on an enum and a record with no fields, using the issue's VSCode symptom as the check. Inspect the derive-macro handling for these empty types and confirm that the completed change no longer emits an unused-variable warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100