mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-04 15:07:47 +00:00
refactor/polish ~ fix cargo clippy
complaints (negation instead of * -1)
This commit is contained in:
parent
3c2e609bfe
commit
88db11a328
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ pub fn get_primitive_dec(
|
|||
match c {
|
||||
'0' => {}
|
||||
_ => {
|
||||
m = ((i as isize) + 1) * -1;
|
||||
m = -((i as isize) + 1);
|
||||
pre = String::from(&second_segment[i..=i]);
|
||||
post = String::from(&second_segment[i + 1..]);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue