touch: fix clippy lints

This commit is contained in:
xalfer 2023-04-08 12:23:24 +02:00
parent 19e456fe2a
commit 9badfcd7d2

View file

@ -87,7 +87,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
let mut seconds = offset.whole_seconds();
let mut nanos = offset.subsec_nanoseconds();
if nanos < 0 {
nanos = 1_000_000_000 + nanos;
nanos += 1_000_000_000;
seconds -= 1;
}