Skip to content

Commit

Permalink
move attributes to after docs
Browse files Browse the repository at this point in the history
Co-authored-by: Marek <[email protected]>
  • Loading branch information
oxarbitrage and upbqdn committed Apr 15, 2024
1 parent aa63ae6 commit 221f725
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion zebra-chain/src/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ impl Network {
}
}

/// Returns BTreemap of blocks.
/// Returns blocks indexed by height in a [`BtreeMap`].

Check failure on line 33 in zebra-chain/src/tests/vectors.rs

View workflow job for this annotation

GitHub Actions / Build and Deploy Zebra Internal Docs

unresolved link to `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()
Expand Down
2 changes: 1 addition & 1 deletion zebra-chain/src/transparent/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,14 @@ 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.
///
/// 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);
Expand Down
2 changes: 1 addition & 1 deletion zebra-test/src/mock_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,14 +959,14 @@ 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
/// currently two types that are used as type-system tags on the [`MockService`]:
///
/// - [`PanicAssertion`]
/// - [`PropTestAssertion`]
#[allow(dead_code)]
trait AssertionType {}

/// Represents normal Rust assertions that panic, like [`assert_eq`].
Expand Down

0 comments on commit 221f725

Please sign in to comment.