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

[Merged by Bors] - Fix new clippy lints #2036

Closed
wants to merge 3 commits into from

Conversation

blacktemplar
Copy link
Contributor

Issue Addressed

NA

Proposed Changes

Fixes new clippy lints in the whole project (mainly manual_strip and unnecessary_lazy_evaluations). Furthermore, removes to_string() calls on literals when used with the ?-operator.

@blacktemplar blacktemplar changed the base branch from stable to unstable December 2, 2020 09:09
# Conflicts:
#	beacon_node/network/src/sync/range_sync/chain_collection.rs
@blacktemplar blacktemplar added the ready-for-review The code is ready for review label Dec 2, 2020
Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

Perfect.

We're lucky Clippy 1.48.0 hasn't run on CI yet!

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Dec 3, 2020
@michaelsproul
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Dec 3, 2020
## Issue Addressed

NA

## Proposed Changes

Fixes new clippy lints in the whole project (mainly [manual_strip](https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip) and [unnecessary_lazy_evaluations](https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_lazy_evaluations)). Furthermore, removes `to_string()` calls on literals when used with the `?`-operator.
@bors bors bot changed the title Fix new clippy lints [Merged by Bors] - Fix new clippy lints Dec 3, 2020
@bors bors bot closed this Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants