Fix the build
Created by: ticki
Problem: The build fails due to a newly introduced lint.
Solution: Work around this, by avoiding the use of match
.
Changes introduced by this pull request:
- Convert the match into an if.
State: Ready.
Blocking/related: fixes #596 (closed).
Other: Introduced by https://github.com/rust-lang/rfcs/pull/1445