mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Run linter
This commit is contained in:
parent
f7a055fc78
commit
9f72b2710f
9 changed files with 66 additions and 32 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue