Merge rust-bitcoin/rust-bitcoin#2063: Fix: IndexOutOfBoundsError Display impl has values in wrong order

c98106ef2e Fix: IndexOutOfBoundsError Display impl has values in wrong order (junderw)

Pull request description:

  Simple self explanatory fix.

ACKs for top commit:
  apoelstra:
    ACK c98106ef2e
  RCasatta:
    utACK c98106ef2e

Tree-SHA512: d08e1f71283a3ef100947418f29caa860080eb32e35ed978710a17694222ab71fc25c0fcc8cdef7af049d9f5ea72319467ef5c0b51376f065ae1ea33c74680fb
This commit is contained in:
Riccardo Casatta 2023-09-12 08:55:19 +02:00
commit 374484ca76
No known key found for this signature in database
GPG Key ID: FD986A969E450397
1 changed files with 2 additions and 2 deletions

View File

@ -798,12 +798,12 @@ impl fmt::Display for IndexOutOfBoundsError {
Inputs { ref index, ref length } => write!( Inputs { ref index, ref length } => write!(
f, f,
"index {} is out-of-bounds for PSBT inputs vector length {}", "index {} is out-of-bounds for PSBT inputs vector length {}",
length, index index, length
), ),
TxInput { ref index, ref length } => write!( TxInput { ref index, ref length } => write!(
f, f,
"index {} is out-of-bounds for PSBT unsigned tx input vector length {}", "index {} is out-of-bounds for PSBT unsigned tx input vector length {}",
length, index index, length
), ),
} }
} }