move attributes to after docs

Co-authored-by: Marek <mail@marek.onl>
This commit is contained in:
Alfredo Garcia 2024-04-15 18:25:55 -03:00
parent aa63ae6624
commit 221f725385
3 changed files with 5 additions and 3 deletions

View File

@ -30,7 +30,9 @@ impl Network {
}
}
/// Returns BTreemap of blocks.
/// Returns blocks indexed by height in a [`BtreeMap`].
///
/// Returns Mainnet blocks if `self` is set to Mainnet, and Testnet blocks otherwise.
pub fn block_map(&self) -> BTreeMap<u32, &'static [u8]> {
if self.is_mainnet() {
zebra_test::vectors::MAINNET_BLOCKS.clone()

View File

@ -224,7 +224,6 @@ impl Address {
}
}
#[allow(dead_code)]
/// A hash of a transparent address payload, as used in
/// transparent pay-to-script-hash and pay-to-publickey-hash
/// addresses.
@ -232,6 +231,7 @@ impl Address {
/// The resulting hash in both of these cases is always exactly 20
/// bytes.
/// <https://en.bitcoin.it/Base58Check_encoding#Encoding_a_Bitcoin_address>
#[allow(dead_code)]
fn hash_payload(bytes: &[u8]) -> [u8; 20] {
let sha_hash = Sha256::digest(bytes);
let ripe_hash = Ripemd160::digest(sha_hash);

View File

@ -959,7 +959,6 @@ impl<Request, Response, Error> ResponseSender<Request, Response, Error> {
}
}
#[allow(dead_code)]
/// A representation of an assertion type.
///
/// This trait is used to group the types of assertions that the [`MockService`] can do. There are
@ -967,6 +966,7 @@ impl<Request, Response, Error> ResponseSender<Request, Response, Error> {
///
/// - [`PanicAssertion`]
/// - [`PropTestAssertion`]
#[allow(dead_code)]
trait AssertionType {}
/// Represents normal Rust assertions that panic, like [`assert_eq`].