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 a bunch of clippy lints #9123

Merged
merged 1 commit into from Jan 3, 2016
Merged

Fix a bunch of clippy lints #9123

merged 1 commit into from Jan 3, 2016

Conversation

@karyon
Copy link
Contributor

karyon commented Jan 2, 2016

This fixes about 130 clippy lints. Let me know if i should split up the commit.

I wasn't sure about some of the changes, especially map_or instead of map(...).unwrap_or(...) and if let instead of single arm match were not always a strict improvement in my opinion, but i'll leave that decision to the reviewer :)

There are about 150 lints left which i thought were clippy bugs or i didn't know how to fix.

cc @Manishearth

Review on Reviewable

@highfive
Copy link

highfive commented Jan 2, 2016

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @metajack (or someone else) soon.

@highfive
Copy link

highfive commented Jan 2, 2016

warning Warning warning

  • These commits modify layout code, but no reftests are modified. Please consider adding a reftest!
@karyon karyon force-pushed the karyon:clippy_cleanup branch from aa0a1d3 to db876e9 Jan 2, 2016
@Manishearth
Copy link
Member

Manishearth commented Jan 2, 2016

Reviewed 59 of 59 files at r1.
Review status: all files reviewed at latest revision, 2 unresolved discussions.


components/devtools/protocol.rs, line 17 [r1] (raw file):
surprised there wasn't a regular rustc unused lifetime error here


components/plugins/Cargo.toml, line 15 [r1] (raw file):
Let it point to the original one, we'll be updating the branch soon


Comments from the review on Reviewable.io

@karyon
Copy link
Contributor Author

karyon commented Jan 2, 2016

Review status: all files reviewed at latest revision, 2 unresolved discussions.


components/plugins/Cargo.toml, line 15 [r1] (raw file):
yeah, that actually wasn't meant to go into the PR.


Comments from the review on Reviewable.io

@karyon karyon force-pushed the karyon:clippy_cleanup branch from db876e9 to 6b215f3 Jan 2, 2016
@Manishearth
Copy link
Member

Manishearth commented Jan 2, 2016

@bors-servo r+

Thanks!


Reviewed 1 of 1 files at r2.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@bors-servo
Copy link
Contributor

bors-servo commented Jan 2, 2016

📌 Commit 6b215f3 has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Jan 2, 2016

Testing commit 6b215f3 with merge d48494b...

bors-servo added a commit that referenced this pull request Jan 2, 2016
Fix a bunch of clippy lints

This fixes about 130 clippy lints. Let me know if i should split up the commit.

I wasn't sure about some of the changes, especially map_or instead of map(...).unwrap_or(...) and if let instead of single arm match were not always a strict improvement in my opinion, but i'll leave that decision to the reviewer :)

There are about 150 lints left which i thought were clippy bugs or i didn't know how to fix.

cc @Manishearth

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9123)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2016

💔 Test failed - linux-rel

@nox
Copy link
Member

nox commented Jan 3, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2016

Testing commit 6b215f3 with merge 9da739a...

bors-servo added a commit that referenced this pull request Jan 3, 2016
Fix a bunch of clippy lints

This fixes about 130 clippy lints. Let me know if i should split up the commit.

I wasn't sure about some of the changes, especially map_or instead of map(...).unwrap_or(...) and if let instead of single arm match were not always a strict improvement in my opinion, but i'll leave that decision to the reviewer :)

There are about 150 lints left which i thought were clippy bugs or i didn't know how to fix.

cc @Manishearth

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9123)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2016

@bors-servo bors-servo merged commit 6b215f3 into servo:master Jan 3, 2016
3 checks passed
3 checks passed
code-review/reviewable Review complete: all files reviewed, all discussions resolved
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.