Skip to content

Make code more rust idiomatic #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 10, 2025

Conversation

Joeydelarago
Copy link
Contributor

I was having a read through the project and had some small suggestions.

I couldn't find a todo list, is there one hosted somewhere? I was thinking of contributing to the project in a more meaningful way that style changes.

Signed-off-by: joeydelarago <[email protected]>
Signed-off-by: joeydelarago <[email protected]>
This makes no functional change, but is more idiomatic.

Signed-off-by: joeydelarago <[email protected]>
Remove uses of val.as_str() for some String, this was being mixed with &val.

Signed-off-by: joeydelarago <[email protected]>
Replace if -> else with match, this throws a compiler error when the enum is extended. It is handy for making sure all uses of the enum are updated.

Signed-off-by: joeydelarago <[email protected]>
Copy link
Contributor

@jovfer jovfer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jovfer
Copy link
Contributor

jovfer commented Mar 9, 2025

@Joeydelarago thank you for contribution!

There should be some todos in the code itself, and #30 is still valid, I think.

@Abdulbois @ashcherbakov anything in DSR's list so the community can help with?

@Abdulbois
Copy link
Contributor

@Joeydelarago thank you for contribution!

LGTM

Will merge

@Abdulbois Abdulbois merged commit 08d75c7 into openwallet-foundation-labs:main Mar 10, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants