1
Fork 0
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:
Roy Ivy III 2019-12-27 15:02:23 -06:00
parent 3c2e609bfe
commit 88db11a328

View file

@ -259,7 +259,7 @@ pub fn get_primitive_dec(
match c { match c {
'0' => {} '0' => {}
_ => { _ => {
m = ((i as isize) + 1) * -1; m = -((i as isize) + 1);
pre = String::from(&second_segment[i..=i]); pre = String::from(&second_segment[i..=i]);
post = String::from(&second_segment[i + 1..]); post = String::from(&second_segment[i + 1..]);
break; break;