Closed Bug 2031372 Opened 3 months ago Closed 3 months ago

Fix a clippy warning in toolkit/components/kvstore/src/task.rs

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(firefox152 fixed)

RESOLVED FIXED
152 Branch
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.

Assignee: nobody → wenzhaoliao
Status: NEW → ASSIGNED

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.

Assignee: wenzhaoliao → nobody
Status: ASSIGNED → NEW

I still see it, I ran CARGO_TARGET_DIR=obj-firefox/cargo cargo clippy -p kvstore
so reassigning and landing

Assignee: nobody → wenzhaoliao
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: