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:
parent
6fac593ec9
commit
e064686397
|
@ -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`.
|
||||||
|
|
Loading…
Reference in New Issue