1
Fork 0

Remove unnecessary parentheses.

This commit is contained in:
Huon Wilson 2014-01-19 19:21:14 +11:00
parent 3901228811
commit 39713b8295
47 changed files with 90 additions and 98 deletions

View file

@ -929,7 +929,7 @@ impl<T : Iterator<char>> Parser<T> {
return self.error(~"EOF while parsing string");
}
if (escape) {
if escape {
match self.ch {
'"' => res.push_char('"'),
'\\' => res.push_char('\\'),
@ -1360,7 +1360,7 @@ impl serialize::Decoder for Decoder {
/// Test if two json values are less than one another
impl Ord for Json {
fn lt(&self, other: &Json) -> bool {
match (*self) {
match *self {
Number(f0) => {
match *other {
Number(f1) => f0 < f1,