Run linter

This commit is contained in:
ayazhafiz 2022-01-31 18:18:14 -05:00
parent f7a055fc78
commit 9f72b2710f
9 changed files with 66 additions and 32 deletions

View file

@ -515,20 +515,20 @@ fn numeric_negate_expression<'a, T>(
let start = state.pos();
let region = Region::new(start, expr.region.end());
let new_expr = match &expr.value {
&Expr::Num(string, bound) => {
let new_expr = match expr.value {
Expr::Num(string, bound) => {
let new_string =
unsafe { std::str::from_utf8_unchecked(&state.bytes()[..string.len() + 1]) };
Expr::Num(new_string, bound)
}
&Expr::Float(string, bound) => {
Expr::Float(string, bound) => {
let new_string =
unsafe { std::str::from_utf8_unchecked(&state.bytes()[..string.len() + 1]) };
Expr::Float(new_string, bound)
}
&Expr::NonBase10Int {
Expr::NonBase10Int {
string,
base,
is_negative,