From 410fd892e95652b436a5ded6eaf151b4e87d010e Mon Sep 17 00:00:00 2001 From: Fmt Bot Date: Sun, 14 Apr 2024 01:21:26 +0000 Subject: [PATCH] 2024-04-14 automated rustfmt nightly --- io/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/io/src/lib.rs b/io/src/lib.rs index 82d51acc..e7878625 100644 --- a/io/src/lib.rs +++ b/io/src/lib.rs @@ -211,8 +211,7 @@ impl> Read for Cursor { let start_pos = self.pos.try_into().unwrap_or(inner.len()); let read = core::cmp::min(inner.len().saturating_sub(start_pos), buf.len()); buf[..read].copy_from_slice(&inner[start_pos..start_pos + read]); - self.pos = - self.pos.saturating_add(read.try_into().unwrap_or(u64::MAX /* unreachable */)); + self.pos = self.pos.saturating_add(read.try_into().unwrap_or(u64::MAX /* unreachable */)); Ok(read) } }