Skip to content

Commit

Permalink
Format PR 1141 with rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 18, 2024
1 parent 29f4a47 commit 5fab5fc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ impl Number {
u.to_string()
}
};
Some(Number{ n })
},
Some(Number { n })
}
Err(_) => match i64::try_from(i) {
Ok(i) => {
if i >= 0 {
Expand All @@ -341,7 +341,7 @@ impl Number {
i.to_string()
}
};
Some(Number{ n })
Some(Number { n })
} else {
let n = {
#[cfg(not(feature = "arbitrary_precision"))]
Expand All @@ -353,11 +353,11 @@ impl Number {
i.to_string()
}
};
Some(Number{ n })
Some(Number { n })
}
},
Err(_) => None
}
}
Err(_) => None,
},
}
}

Expand Down

0 comments on commit 5fab5fc

Please sign in to comment.