Run the formatter
Run `cargo +nightly fmt`, no manual changes.
This commit is contained in:
parent
02c7d504fa
commit
8b089ffe40
|
@ -355,8 +355,8 @@ impl TxOut {
|
|||
}
|
||||
|
||||
mod tmp {
|
||||
use super::*;
|
||||
impl TxOut {
|
||||
use super::*;
|
||||
impl TxOut {
|
||||
/// The weight of this output.
|
||||
///
|
||||
/// Keep in mind that when adding a [`TxOut`] to a [`Transaction`] the total weight of the
|
||||
|
@ -369,7 +369,8 @@ impl TxOut {
|
|||
/// `Weght::from_vb_checked(self.size().to_u64())` if you are concerned.
|
||||
pub fn weight(&self) -> Weight {
|
||||
// Size is equivalent to virtual size since all bytes of a TxOut are non-witness bytes.
|
||||
Weight::from_vb(self.size().to_u64()).expect("should never happen under normal conditions")
|
||||
Weight::from_vb(self.size().to_u64())
|
||||
.expect("should never happen under normal conditions")
|
||||
}
|
||||
|
||||
/// Returns the total number of bytes that this output contributes to a transaction.
|
||||
|
@ -404,7 +405,7 @@ impl TxOut {
|
|||
pub fn minimal_non_dust_custom(script_pubkey: ScriptBuf, dust_relay_fee: FeeRate) -> Self {
|
||||
TxOut { value: script_pubkey.minimal_non_dust_custom(dust_relay_fee), script_pubkey }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "arbitrary")]
|
||||
|
|
Loading…
Reference in New Issue