Skip to content

Commit 990a79f

Browse files
committed
char: small tweak since is_some > equivalent match.
1 parent e670fb4 commit 990a79f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libcore/char.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,7 @@ pub trait CharExt {
198198
impl CharExt for char {
199199
#[unstable = "pending integer conventions"]
200200
fn is_digit(self, radix: uint) -> bool {
201-
match self.to_digit(radix) {
202-
Some(_) => true,
203-
None => false,
204-
}
201+
self.to_digit(radix).is_some()
205202
}
206203

207204
#[unstable = "pending integer conventions"]

0 commit comments

Comments
 (0)