Make Option impl more readable (use same code as for array impl)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
Research direction
Open src/implementation.rs and compare the Option implementation at lines 315-356 with the array implementation at lines 25-37. Refactor the Option code to use the same, more readable structure while preserving its behavior. Review the resulting diff and run the repository's available Rust checks to confirm nothing else changes.
Written by the indexing model from the issue text.
Description
The code for Option
https://github.com/amethyst/serde-diff/blob/e461da41c9339af3ecadf9f4aa61ae91c1f79e97/src/implementation.rs#L315-L356
would be more readable if written like the code for arrays
https://github.com/amethyst/serde-diff/blob/e461da41c9339af3ecadf9f4aa61ae91c1f79e97/src/implementation.rs#L25-L37
- Dominant language
- Rust
- Stars
- 127
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
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.
More from amethyst/serde-diff
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
amethyst/serde-diff#43 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
amethyst/serde-diff#42 · 6 comments · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
amethyst/serde-diff#39 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
amethyst/serde-diff#35 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
amethyst/serde-diff#32 ·
All issues in amethyst/serde-diff
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·