Fix clippy lint issues for geckodriver
Categories
(Testing :: geckodriver, task, P2)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: jgraham, Assigned: dheiberg)
Details
Attachments
(9 files, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Install clippy like:
rustup component add clippy --toolchain stable-x86_64-unknown-linux-gnu
(although on mac it's probably a different toolchain; look at the error message from cargo clippy
to find out). Then run cargo clippy
in testing/geckodriver
. I think this ends up running on all the dependencies (and maybe some other stuff in the workspace), but it should be possible to fix everything under geckodriver, webdriver and mozbase/rust.
Comment 1•5 years ago
|
||
cargo fix
might be useful to automatically apply some of the
suggestions from rustc and clippy.
Assignee | ||
Comment 2•5 years ago
|
||
Some of the code inside of testing/geckodriver failed/raised clippy linting errors.
Here are some minor changes to fix most of the linting issues raised by clippy.
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D43938
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D43939
Assignee | ||
Comment 6•5 years ago
|
||
Depends on D43940
Assignee | ||
Comment 7•5 years ago
|
||
Depends on D43941
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D43942
Updated•5 years ago
|
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/edd08f5d1fc2 Removed Clone on Copy types r=jgraham https://hg.mozilla.org/integration/autoland/rev/f23040442548 Use _else variants of ok_or, unwrap_or, etc. to lazy evaluate functions. r=jgraham https://hg.mozilla.org/integration/autoland/rev/389d3e7d277a Remove redundant field names r=jgraham https://hg.mozilla.org/integration/autoland/rev/2c2e8bf45df9 Use assignment operators instead of longer form r=jgraham https://hg.mozilla.org/integration/autoland/rev/47ce7a659a1f Improve use of references based on Clippy suggestions r=jgraham https://hg.mozilla.org/integration/autoland/rev/27322845983b Lint fixes with clippy and cargo fix r=jgraham
Assignee | ||
Comment 10•5 years ago
|
||
Assignee | ||
Comment 11•5 years ago
|
||
Depends on D43970
Comment 12•5 years ago
|
||
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/55378cbba628 Change to_ to into_ to suit naming convention regarding self methods r=jgraham https://hg.mozilla.org/integration/autoland/rev/62c8064a6be0 Move closure out of if statement r=jgraham
Assignee | ||
Comment 13•5 years ago
|
||
There are still some issues in testing/geckodriver/marionette
, looking into them now as part of this bug since it's part of the same dir
Assignee | ||
Comment 14•5 years ago
|
||
Updated•5 years ago
|
Comment 15•5 years ago
|
||
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/89a456a83002 Allow clippy double option, remove redundant let binding r=jgraham
Comment 16•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/edd08f5d1fc2
https://hg.mozilla.org/mozilla-central/rev/f23040442548
https://hg.mozilla.org/mozilla-central/rev/389d3e7d277a
https://hg.mozilla.org/mozilla-central/rev/2c2e8bf45df9
https://hg.mozilla.org/mozilla-central/rev/47ce7a659a1f
https://hg.mozilla.org/mozilla-central/rev/27322845983b
Comment 17•5 years ago
|
||
bugherder |
Comment 18•5 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/edd08f5d1fc2
https://hg.mozilla.org/releases/mozilla-beta/rev/f23040442548
https://hg.mozilla.org/releases/mozilla-beta/rev/389d3e7d277a
https://hg.mozilla.org/releases/mozilla-beta/rev/2c2e8bf45df9
https://hg.mozilla.org/releases/mozilla-beta/rev/47ce7a659a1f
https://hg.mozilla.org/releases/mozilla-beta/rev/27322845983b
https://hg.mozilla.org/releases/mozilla-beta/rev/55378cbba628
https://hg.mozilla.org/releases/mozilla-beta/rev/62c8064a6be0
https://hg.mozilla.org/releases/mozilla-beta/rev/89a456a83002
Comment 19•5 years ago
|
||
This is not a complaint, but I don’t entirely understand why this was uplifted to beta?
Comment 20•5 years ago
|
||
(In reply to Andreas Tolfsen 「:ato」 from comment #19)
This is not a complaint, but I don’t entirely understand why this was uplifted to beta?
That was just a sync between Nightly 70 and Beta 70, which happened several times between the first merge from central to beta, and the final version bump on central to 71. It's used to produce the developer edition builds.
Description
•