bench.rs: length comparison to zero
Categories
(Developer Infrastructure :: Source Code Analysis, task)
Tracking
(firefox100 fixed)
Tracking | Status | |
---|---|---|
firefox100 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: bourg.garrett, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=rust])
Attachments
(1 file)
Filling as a good first bug to learn workflows.
hs.len() == 0
should use .is_empty() instead
As the change is trivial, it is just to learn how to contribute to Firefox.
Found by https://rust-lang.github.io/rust-clippy/master/#len_zero
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html
Comment 1•2 years ago
|
||
(In reply to Sylvestre Ledru [:Sylvestre] from comment #0)
should use .empty() instead
.is_empty() right? :)
Reporter | ||
Comment 2•2 years ago
|
||
indeed, lazy clone for the C++ equivalent :)
I updated comment #0
Assignee | ||
Comment 3•2 years ago
|
||
I'd like to give this a shot. I've gone through the first several steps in the contribution guide and I found the right file to update.
Assignee | ||
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 5•2 years ago
|
||
My patch was approved, but I could use some help getting this change landed. Is there a particular place I need to go to ask for assistance from the reviewer?
Comment 6•2 years ago
|
||
Using the "Request more information" flag in bugzilla is more effective than commenting on phabricator because comments on phabricator are easy-ish to miss. Nika probably missed it, I've pushed the patch for you. Thanks!
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/11516564cff9 Fix lint warning on string comparison in bench.rs. r=nika
Comment 8•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•