-
Notifications
You must be signed in to change notification settings - Fork 411
Run clippy fix #2049
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
Run clippy fix #2049
Conversation
2782b6f
to
05c9a0c
Compare
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #2049 +/- ##
==========================================
+ Coverage 87.25% 87.32% +0.07%
==========================================
Files 100 101 +1
Lines 44480 44350 -130
Branches 44480 44350 -130
==========================================
- Hits 38810 38728 -82
+ Misses 5670 5622 -48
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Thanks! Concept ACK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. These are all fair improvements. A big plus for it catching some unnecessary clones.
I think if we're only looking at a small set of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good, some nits/comments.
@@ -1316,7 +1316,7 @@ mod tests { | |||
// this should have added two channels | |||
assert_eq!(network_graph.read_only().channels().len(), 3); | |||
|
|||
let _ = receiver | |||
receiver | |||
.recv_timeout(Duration::from_secs(super::FIRST_NETWORK_PRUNE_TIMER * 5)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Can now move the next line up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is still consistent with the style of the test, will leave it as is
05c9a0c
to
7e58eda
Compare
Added |
7e58eda
to
1ce4195
Compare
Fixed conflict because of new commit |
1ce4195
to
741552f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Basically LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, feel free to squash commits from my side.
Total diff LGTM, thanks! Can you squash down the commits so that later commits aren't tweaking things done in the previous commits? Then I think we can land. |
Squashed into one commit without further changes |
Result of running:
Plus some manual formatting fixes.
In my experience
clippy --fix
always improves the code so I always run it before any pull request. The only issue is when it tries to introduce new features beyond the MSRV.I hope the changes are within the directives given in #724 (comment)