Skip to content
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

Fix clippy warnings to rust 1.73 #2405

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

Tommytrg
Copy link
Member

@Tommytrg Tommytrg commented Oct 18, 2023

  • Fix clippy warnings to rust 1.73:
    • Refactor code to use a .fold to return a Vec<String> instead of use format! in a .map.
    • Replace or_insert_with with or_default
  • Refactor. Get the pkh and call to_string in the same .map instead of doing it in two different iterations.

@Tommytrg Tommytrg force-pushed the fix/clippy-errors-0.1.73 branch from c1ccea0 to 7c2e7e6 Compare October 18, 2023 15:04
Fix clippy warning for rust 1.73. Replace `or_insert_with` with `or_default`
@Tommytrg Tommytrg force-pushed the fix/clippy-errors-0.1.73 branch from 7c2e7e6 to 0065952 Compare October 18, 2023 15:08
Fix clippy warnings to rust 1.73. Refactor code to use a `.fold` to return a
`Vec<String>` instead of use `format!` in a `.map`.
Get the pkh and call `to_string` in the same `.map` instead of doing it in two
different iterations.
@Tommytrg Tommytrg force-pushed the fix/clippy-errors-0.1.73 branch from 0065952 to 7ab51a9 Compare October 18, 2023 15:09
@Tommytrg Tommytrg changed the title refactor(clippy): replace or_insert_with with or_default Fix clippy warnings to rust 1.73 Oct 18, 2023
@Tommytrg Tommytrg marked this pull request as ready for review October 18, 2023 15:11
@Tommytrg Tommytrg requested a review from aesedepece October 18, 2023 15:11
@aesedepece aesedepece merged commit 7ab51a9 into witnet:master Oct 19, 2023
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.

2 participants