mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fmt: format doc comments (#5308)
This commit is contained in:
@ -10,9 +10,8 @@ use reth_primitives::{Chain, ForkId, PeerId, B256, U256};
|
||||
///
|
||||
/// # Example
|
||||
/// ```
|
||||
/// use reth_eth_wire::EthVersion;
|
||||
/// use reth_primitives::{Chain, U256, B256, MAINNET_GENESIS_HASH, MAINNET, Hardfork};
|
||||
/// use reth_eth_wire::types::Status;
|
||||
/// use reth_eth_wire::{types::Status, EthVersion};
|
||||
/// use reth_primitives::{Chain, Hardfork, B256, MAINNET, MAINNET_GENESIS_HASH, U256};
|
||||
///
|
||||
/// // this is just an example status message!
|
||||
/// let status = Status::builder()
|
||||
|
||||
@ -33,11 +33,11 @@ impl HelloMessage {
|
||||
/// Starts a new `HelloMessageBuilder`
|
||||
///
|
||||
/// ```
|
||||
/// use secp256k1::{SECP256K1, SecretKey};
|
||||
/// use reth_ecies::util::pk2id;
|
||||
/// use reth_eth_wire::HelloMessage;
|
||||
/// use secp256k1::{SecretKey, SECP256K1};
|
||||
/// let secret_key = SecretKey::new(&mut rand::thread_rng());
|
||||
/// let id = pk2id(&secret_key.public_key(SECP256K1));
|
||||
/// let id = pk2id(&secret_key.public_key(SECP256K1));
|
||||
/// let status = HelloMessage::builder(id).build();
|
||||
/// ```
|
||||
pub fn builder(id: PeerId) -> HelloMessageBuilder {
|
||||
|
||||
Reference in New Issue
Block a user