Skip to content

Commit 25ef68a

Browse files
committed
Merge rust-bitcoin#5087: Automated nightly rustfmt (2025-10-05)
da0ea35 2025-10-05 automated rustfmt nightly (Fmt Bot) Pull request description: Automated nightly `rustfmt` changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action ACKs for top commit: apoelstra: ACK da0ea35; successfully ran local tests; short and sweet Tree-SHA512: 04b846319781cf007d70b7c56cfdc05ed18105de168247ae20fa802a45a94597515f8cff4f368d59de66a03c9f5f4274cf54a771fa5096140843e536b73b4a12
2 parents b33216c + da0ea35 commit 25ef68a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

io/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,7 @@ impl<T: AsRef<[u8]>> BufRead for Cursor<T> {
304304
}
305305

306306
#[inline]
307-
fn consume(&mut self, amount: usize) {
308-
self.pos = self.pos.saturating_add(amount as u64);
309-
}
307+
fn consume(&mut self, amount: usize) { self.pos = self.pos.saturating_add(amount as u64); }
310308
}
311309

312310
/// A generic trait describing an output stream.

primitives/src/witness.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ impl<'a> Arbitrary<'a> for Witness {
629629
mod test {
630630
#[cfg(feature = "alloc")]
631631
use alloc::vec;
632+
632633
use super::*;
633634

634635
// Appends all the indices onto the end of a list of elements.

0 commit comments

Comments
 (0)