Some clippy fixes (#36544)

These showed up today, so just applied the simplifications, which were
mostly switching matches to if let

Release Notes:

- N/A
ceec258bf3Ben Brandt committed on 8/20/2025, 3:40:39 AM· committed by GitHubparentcac80e2
3 files changedLine totals unavailable