Merge rust-bitcoin/rust-bitcoin#4645: Automated nightly rustfmt (2025-06-29)

4e869b7415 2025-06-29 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:
  tcharding:
    ACK 4e869b7415
  apoelstra:
    ACK 4e869b7415afb4d86883c7b02c64f8bf1a546039; successfully ran local tests


Tree-SHA512: 7b41949d5a15df2532935f8b38156912e704dd0ba5100b6eff6bc6f7b646f11ce863a7fcca79317967a4e9ad745aa3a264c328b2bf93d80a8e978c3815dbbea6
This commit is contained in:
Andrew Poelstra 2025-07-02 14:25:18 +00:00
commit af47c728ea
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
2 changed files with 2 additions and 2 deletions

View File

@ -1142,7 +1142,7 @@ impl InputWeightPrediction {
/// Computes the **signature weight** added to a transaction by an input with this weight prediction, /// Computes the **signature weight** added to a transaction by an input with this weight prediction,
/// not counting the prevout (txid, index), sequence, potential witness flag bytes or the witness count varint. /// not counting the prevout (txid, index), sequence, potential witness flag bytes or the witness count varint.
/// ///
/// This function's internal arithmetic saturates at u32::MAX, so the return value of this /// This function's internal arithmetic saturates at u32::MAX, so the return value of this
/// function may be inaccurate for extremely large witness predictions. /// function may be inaccurate for extremely large witness predictions.
/// ///

View File

@ -313,7 +313,7 @@ mod tests {
let locktime = NumberOf512Seconds::from_512_second_intervals(intervals); let locktime = NumberOf512Seconds::from_512_second_intervals(intervals);
assert_eq!(locktime.to_512_second_intervals(), intervals); assert_eq!(locktime.to_512_second_intervals(), intervals);
} }
#[test] #[test]
fn from_seconds_ceil_success() { fn from_seconds_ceil_success() {
let actual = NumberOf512Seconds::from_seconds_ceil(100).unwrap(); let actual = NumberOf512Seconds::from_seconds_ceil(100).unwrap();