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

Remove imports and cleanups #3590

Merged
merged 4 commits into from
Mar 8, 2021

Conversation

quentinlesceller
Copy link
Member

Mostly removal of unused imports.
Three additional things:

  1. Consolidation of if else structure with the same return type
  2. Removal of unnecessary clone
  3. Do not call string() in Display function. This can lead to infinite recursion.

Overall should be consensual.

Copy link
Member

@antiochp antiochp left a comment

Choose a reason for hiding this comment

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

Looks good!

@antiochp
Copy link
Member

antiochp commented Mar 8, 2021

Were the if/else changes caught by clippy or just manual?

@quentinlesceller
Copy link
Member Author

All Clippy (https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else). Those were "Deny" type so blocking any further clippy processing.

@quentinlesceller quentinlesceller merged commit 725622d into mimblewimble:master Mar 8, 2021
@quentinlesceller quentinlesceller deleted the ifelse branch March 8, 2021 16:09
@antiochp antiochp mentioned this pull request May 6, 2021
bayk added a commit to mwcproject/mwc-node that referenced this pull request Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants