Deprecate OutPoint::new constructor

The `OutPoint` type has two public fields, providing a `new` constructor
that just sets these two fields adds no value.
This commit is contained in:
Tobin C. Harding 2024-09-11 09:07:07 +10:00
parent 6fac593ec9
commit e064686397
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 0 deletions

View File

@ -122,6 +122,7 @@ impl OutPoint {
/// Creates a new [`OutPoint`]. /// Creates a new [`OutPoint`].
#[inline] #[inline]
#[deprecated(since = "TBD", note = "use struct initialization syntax instead")]
pub const fn new(txid: Txid, vout: u32) -> OutPoint { OutPoint { txid, vout } } pub const fn new(txid: Txid, vout: u32) -> OutPoint { OutPoint { txid, vout } }
/// Creates a "null" `OutPoint`. /// Creates a "null" `OutPoint`.