Use if-let instead of nested match statements
Use rustbox version from crates.io