Bug 1747555 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

+++ This bug was initially created as a clone of Bug #1747544 +++

Filling as a good first bug to learn workflows.

`if let` will suffice.

TEST-UNEXPECTED-WARNING | /builds/worker/checkouts/gecko/js/src/frontend/smoosh/build.rs:18:5 | you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` (clippy::single_match) 

https://searchfox.org/mozilla-central/rev/cc4a22e024a23183e53696bf6dc5014e407a29ff/js/src/frontend/smoosh/build.rs#18-23

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/#single_match

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html
+++ This bug was initially created as a clone of Bug #1747544 +++

Filling as a good first bug to learn workflows.

`if let` will suffice.

```
TEST-UNEXPECTED-WARNING | /builds/worker/checkouts/gecko/js/src/frontend/smoosh/build.rs:18:5 | you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` (clippy::single_match) 
```

https://searchfox.org/mozilla-central/rev/cc4a22e024a23183e53696bf6dc5014e407a29ff/js/src/frontend/smoosh/build.rs#18-23

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/#single_match

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html

Back to Bug 1747555 Comment 0