Skip to content

Commit 46ab35a

Browse files
committed
---
yaml --- r: 169298 b: refs/heads/master c: 990a79f h: refs/heads/master v: v3
1 parent 2ac9946 commit 46ab35a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e670fb484b89dfbdfbee9b91497db61303882d8b
2+
refs/heads/master: 990a79f097e8e74308bfec6d72dcdbb769a7973b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb

trunk/src/libcore/char.rs

Lines changed: 1 addition & 4 deletions
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)