Auto merge of #9110 - klensy:simple-fix, r=alexcrichton
Auto merge of #9110 - klensy:simple-fix, r=alexcrichton

simplify char range check

Instead manually checking ranges for char, use std method.

nipunn1313/cargo,nipunn1313/cargo,rustyhorde/cargo,eminence/cargo,nipunn1313/cargo,rust-lang/cargo,nipunn1313/cargo,rustyhorde/cargo,eminence/cargo,rust-lang/cargo,eminence/cargo,rustyhorde/cargo,eminence/cargo,rustyhorde/cargo,rust-lang/cargo,rust-lang/cargo