From 52f23323836dd1db11f4b7e9209db2c3a2880306 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 4 Aug 2023 10:51:57 +1000 Subject: [PATCH] Remove docs from witness version conversion functions These docs do not add that much value, we do not typically bother documenting `From` and `TryFrom` implementations because they are super well known and its obvious from the function signature what is going on. --- bitcoin/src/blockdata/script/witness_version.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/bitcoin/src/blockdata/script/witness_version.rs b/bitcoin/src/blockdata/script/witness_version.rs index 8ac353ca..b59f30b0 100644 --- a/bitcoin/src/blockdata/script/witness_version.rs +++ b/bitcoin/src/blockdata/script/witness_version.rs @@ -156,14 +156,12 @@ impl<'a> TryFrom> for WitnessVersion { } impl From for bech32::u5 { - /// Converts [`WitnessVersion`] instance into corresponding Bech32(m) u5-value ([`bech32::u5`]). fn from(version: WitnessVersion) -> Self { bech32::u5::try_from_u8(version.to_num()).expect("WitnessVersion must be 0..=16") } } impl From for Opcode { - /// Converts [`WitnessVersion`] instance into corresponding Bitcoin scriptopcode (`OP_0`..`OP_16`). fn from(version: WitnessVersion) -> Opcode { match version { WitnessVersion::V0 => OP_PUSHBYTES_0,