Auto merge of #12240 - perlun:fix/use-if-let, r=ConnorGBrewster
Auto merge of #12240 - perlun:fix/use-if-let, r=ConnorGBrewster

Use if let rather than match

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #12236

- [ ] There are tests for these changes OR
- [X] These changes do not require tests because @jdm said so. 😉 Trivial change so as long as it compiles, "ship it".

Fixes #12236.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12240)
<!-- Reviewable:end -->

nnethercote/servo,KiChjang/servo,sadmansk/servo,avadacatavra/servo,saneyuki/servo,splav/servo,saneyuki/servo,canaltinova/servo,notriddle/servo,SimonSapin/servo,cbrewster/servo,ConnorGBrewster/servo,saneyuki/servo,mbrubeck/servo,cbrewster/servo,DominoTree/servo,SimonSapin/servo,peterjoel/servo,nnethercote/servo,mattnenterprise/servo,avadacatavra/servo,pyfisch/servo,thiagopnts/servo,mbrubeck/servo,notriddle/servo,CJ8664/servo,larsbergstrom/servo,szeged/servo,CJ8664/servo,peterjoel/servo,canaltinova/servo,paulrouget/servo,ConnorGBrewster/servo,szeged/servo,dati91/servo,fiji-flo/servo,KiChjang/servo,nrc/servo,jimberlage/servo,canaltinova/servo,KiChjang/servo,dsandeephegde/servo,saneyuki/servo,KiChjang/servo,dsandeephegde/servo,ConnorGBrewster/servo,szeged/servo,emilio/servo,canaltinova/servo,mattnenterprise/servo,dati91/servo,thiagopnts/servo,thiagopnts/servo,CJ8664/servo,rnestler/servo,cbrewster/servo,anthgur/servo,dsandeephegde/servo,KiChjang/servo,peterjoel/servo,eddyb/servo,DominoTree/servo,upsuper/servo,KiChjang/servo,cbrewster/servo,splav/servo,upsuper/servo,paulrouget/servo,upsuper/servo,emilio/servo,nnethercote/servo,peterjoel/servo,nrc/servo,eddyb/servo,canaltinova/servo,SimonSapin/servo,saneyuki/servo,nnethercote/servo,pyfisch/servo,nnethercote/servo,notriddle/servo,cbrewster/servo,nnethercote/servo,fiji-flo/servo,anthgur/servo,pyfisch/servo,jimberlage/servo,upsuper/servo,larsbergstrom/servo,mattnenterprise/servo,dsandeephegde/servo,pyfisch/servo,DominoTree/servo,CJ8664/servo,eddyb/servo,nrc/servo,CJ8664/servo,avadacatavra/servo,larsbergstrom/servo,DominoTree/servo,emilio/servo,pyfisch/servo,dati91/servo,paulrouget/servo,fiji-flo/servo,larsbergstrom/servo,sadmansk/servo,DominoTree/servo,eddyb/servo,upsuper/servo,anthgur/servo,sadmansk/servo,mbrubeck/servo,pyfisch/servo,notriddle/servo,fiji-flo/servo,splav/servo,dsandeephegde/servo,sadmansk/servo,szeged/servo,avadacatavra/servo,rnestler/servo,saneyuki/servo,nrc/servo,jimberlage/servo,ConnorGBrewster/servo,splav/servo,dsandeephegde/servo,fiji-flo/servo,notriddle/servo,nnethercote/servo,szeged/servo,mbrubeck/servo,peterjoel/servo,notriddle/servo,avadacatavra/servo,KiChjang/servo,nrc/servo,larsbergstrom/servo,jimberlage/servo,thiagopnts/servo,CJ8664/servo,paulrouget/servo,CJ8664/servo,upsuper/servo,splav/servo,ConnorGBrewster/servo,mattnenterprise/servo,dati91/servo,rnestler/servo,SimonSapin/servo,canaltinova/servo,splav/servo,jimberlage/servo,saneyuki/servo,dati91/servo,notriddle/servo,nrc/servo,emilio/servo,fiji-flo/servo,peterjoel/servo,mattnenterprise/servo,peterjoel/servo,SimonSapin/servo,splav/servo,szeged/servo,splav/servo,peterjoel/servo,dati91/servo,thiagopnts/servo,SimonSapin/servo,SimonSapin/servo,mbrubeck/servo,avadacatavra/servo,saneyuki/servo,DominoTree/servo,cbrewster/servo,sadmansk/servo,anthgur/servo,paulrouget/servo,szeged/servo,nnethercote/servo,dati91/servo,KiChjang/servo,ConnorGBrewster/servo,ConnorGBrewster/servo,ConnorGBrewster/servo,pyfisch/servo,paulrouget/servo,rnestler/servo,canaltinova/servo,cbrewster/servo,dsandeephegde/servo,emilio/servo,saneyuki/servo,upsuper/servo,jimberlage/servo,splav/servo,notriddle/servo,larsbergstrom/servo,nrc/servo,larsbergstrom/servo,cbrewster/servo,sadmansk/servo,splav/servo,anthgur/servo,peterjoel/servo,CJ8664/servo,notriddle/servo,sadmansk/servo,emilio/servo,DominoTree/servo,rnestler/servo,pyfisch/servo,DominoTree/servo,DominoTree/servo,avadacatavra/servo,paulrouget/servo,jimberlage/servo,sadmansk/servo,dati91/servo,rnestler/servo,dsandeephegde/servo,mattnenterprise/servo,pyfisch/servo,emilio/servo,thiagopnts/servo,notriddle/servo,szeged/servo,jimberlage/servo,KiChjang/servo,nnethercote/servo,saneyuki/servo,mbrubeck/servo,mbrubeck/servo,eddyb/servo,anthgur/servo,eddyb/servo,fiji-flo/servo,jimberlage/servo,nnethercote/servo,emilio/servo,emilio/servo,fiji-flo/servo,szeged/servo,KiChjang/servo,anthgur/servo,thiagopnts/servo,upsuper/servo,avadacatavra/servo,paulrouget/servo,anthgur/servo,canaltinova/servo,mattnenterprise/servo,SimonSapin/servo,pyfisch/servo,eddyb/servo,thiagopnts/servo,rnestler/servo,peterjoel/servo,paulrouget/servo,eddyb/servo,larsbergstrom/servo,rnestler/servo,larsbergstrom/servo,szeged/servo,DominoTree/servo,mbrubeck/servo,paulrouget/servo,mattnenterprise/servo,emilio/servo,larsbergstrom/servo