VOOZH about

URL: https://bugzilla.mozilla.org/2031377

⇱ 2031377 - Fix a clippy warning in toolkit/components/gecko-trace/src/collector.rs


Closed Bug 2031377 Opened 2 months ago Closed 1 month ago

Fix a clippy warning in toolkit/components/gecko-trace/src/collector.rs

Fix a clippy warning in toolkit/components/gecko-trace/src/collector.rs
Developer Infrastructure
Lint and Formatting
unspecified
All
All
RESOLVED FIXED
RESOLVED
FIXED
152 Branch
Accessibility Severity
Tracking Status
firefox152 --- fixed
Tracking Status
relnote-firefox
thunderbird_esr115
thunderbird_esr140
firefox-esr115
firefox-esr140
firefox-esr153
firefox152
firefox153
firefox154
---
[lang=rust]
QA Whiteboard:
---
Change Request:
---
Bug Flags:
Signature:
None
This bug is publicly visible.

 

Filing as a good first bug to learn workflows.

toolkit/components/gecko-trace/src/collector.rs
 119:9 warning you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` clippy::single_match (clippy)

Link to the code:
https://searchfox.org/mozilla-central/source/toolkit/components/gecko-trace/src/collector.rs#119

To run the linter:

./mach lint -W -l clippy toolkit/components/gecko-trace/src/collector.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 → ffhpno1
Status: NEW → ASSIGNED

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:ffhpno1, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(gstoll)
Flags: needinfo?(ffhpno1)

I'll go ahead and land this. Thanks :vyofgod!

Flags: needinfo?(gstoll)
Flags: needinfo?(ffhpno1)
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch
You need to log in before you can comment on or make changes to this bug.