Merge rust-bitcoin/rust-bitcoin#2334: Automated nightly rustfmt (2024-01-14)
e768c92ce3
2024-01-14 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: ACKe768c92ce3
will merge with one ACK Tree-SHA512: 76ecb717c9dee8e765fc3f4c94a58284549dc59309e35b47a183d45c482dce9ac68f2c13f010189a39c8a768410d12b895caf714c7faf409619556b8d4cfa39e
This commit is contained in:
commit
52b239ef70
|
@ -357,7 +357,10 @@ impl Script {
|
||||||
///
|
///
|
||||||
/// This method has potentially confusing semantics and an unclear purpose, so it's going to be
|
/// This method has potentially confusing semantics and an unclear purpose, so it's going to be
|
||||||
/// removed. Use `is_op_return` if you want `OP_RETURN` semantics.
|
/// removed. Use `is_op_return` if you want `OP_RETURN` semantics.
|
||||||
#[deprecated(since = "TBD", note = "The method is not very useful, you might want `is_op_return`")]
|
#[deprecated(
|
||||||
|
since = "TBD",
|
||||||
|
note = "The method is not very useful, you might want `is_op_return`"
|
||||||
|
)]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_provably_unspendable(&self) -> bool {
|
pub fn is_provably_unspendable(&self) -> bool {
|
||||||
use crate::blockdata::opcodes::Class::{IllegalOp, ReturnOp};
|
use crate::blockdata::opcodes::Class::{IllegalOp, ReturnOp};
|
||||||
|
|
Loading…
Reference in New Issue