mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-21 12:28:29 +00:00

At the `if` branch `filter` (the `let` binding) is `None` iff `filter` (the parameter) was `None`. We can branch on the parameter, move the binding into the `if`, and the complexity of handling `Option<Option<_>` largely dissolves.