Fix a clippy warning in toolkit/components/kvstore/src/task.rs
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox152 fixed)
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: wenzhaoliao)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=rust])
Attachments
(1 file)
Filing as a good first bug to learn workflows.
toolkit/components/kvstore/src/task.rs
191:9 warning enclosing `Ok` and `?` operator are unneeded clippy::needless_question_mark (clippy)
Link to the code:
https://searchfox.org/mozilla-central/source/toolkit/components/kvstore/src/task.rs#191
To run the linter:
./mach lint -W -l clippy toolkit/components/kvstore/src/task.rs
As the change is trivial, it is just to learn how to contribute to Firefox.
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html
Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
Updated•3 months ago
|
Re-checked this on mozilla-central tip on 2026-04-18 with ./mach lint -W -l clippy toolkit/components/kvstore/src/task.rs --verbose, and it now reports 0 problems. I don't have a patch to submit anymore, so I'm unassigning this bug back to the pool.
Comment 3•3 months ago
|
||
I still see it, I ran CARGO_TARGET_DIR=obj-firefox/cargo cargo clippy -p kvstore
so reassigning and landing
Comment 5•3 months ago
|
||
| bugherder | ||
Description
•