Skip to content

Commit

Permalink
char: small tweak since is_some > equivalent match.
Browse files Browse the repository at this point in the history
  • Loading branch information
huonw committed Jan 5, 2015
1 parent e670fb4 commit 990a79f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libcore/char.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,7 @@ pub trait CharExt {
impl CharExt for char {
#[unstable = "pending integer conventions"]
fn is_digit(self, radix: uint) -> bool {
match self.to_digit(radix) {
Some(_) => true,
None => false,
}
self.to_digit(radix).is_some()
}

#[unstable = "pending integer conventions"]
Expand Down

6 comments on commit 990a79f

@bors
Copy link
Contributor

@bors bors commented on 990a79f Jan 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from aturon
at huonw@990a79f

@bors
Copy link
Contributor

@bors bors commented on 990a79f Jan 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging huonw/rust/char-stab-2 = 990a79f into auto

@bors
Copy link
Contributor

@bors bors commented on 990a79f Jan 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status: {"merge_sha": "1f732ef53d54ccfc3e7728390ffbcea8a696ecee"}

@bors
Copy link
Contributor

@bors bors commented on 990a79f Jan 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huonw/rust/char-stab-2 = 990a79f merged ok, testing candidate = 1f732ef

@bors
Copy link
Contributor

@bors bors commented on 990a79f Jan 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 1f732ef

Please sign in to comment.