mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
add doc_markdown clippy lint (#8552)
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -93,7 +93,7 @@ impl BlockBatchRecord {
|
||||
std::mem::take(&mut self.requests)
|
||||
}
|
||||
|
||||
/// Returns the [BundleRetention] for the given block based on the configured prune modes.
|
||||
/// Returns the [`BundleRetention`] for the given block based on the configured prune modes.
|
||||
pub fn bundle_retention(&self, block_number: BlockNumber) -> BundleRetention {
|
||||
if self.tip.map_or(true, |tip| {
|
||||
!self
|
||||
|
||||
@ -61,18 +61,18 @@ impl<T: reth_storage_api::StateProvider> EvmStateProvider for T {
|
||||
}
|
||||
}
|
||||
|
||||
/// A [Database] and [DatabaseRef] implementation that uses [EvmStateProvider] as the underlying
|
||||
/// A [Database] and [`DatabaseRef`] implementation that uses [`EvmStateProvider`] as the underlying
|
||||
/// data source.
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct StateProviderDatabase<DB>(pub DB);
|
||||
|
||||
impl<DB> StateProviderDatabase<DB> {
|
||||
/// Create new State with generic StateProvider.
|
||||
/// Create new State with generic `StateProvider`.
|
||||
pub const fn new(db: DB) -> Self {
|
||||
Self(db)
|
||||
}
|
||||
|
||||
/// Consume State and return inner StateProvider.
|
||||
/// Consume State and return inner `StateProvider`.
|
||||
pub fn into_inner(self) -> DB {
|
||||
self.0
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ fn eip2935_block_hash_slot<DB: Database<Error = ProviderError>>(
|
||||
}
|
||||
|
||||
/// Applies the pre-block call to the [EIP-4788] beacon block root contract, using the given block,
|
||||
/// [ChainSpec], EVM.
|
||||
/// [`ChainSpec`], EVM.
|
||||
///
|
||||
/// If Cancun is not activated or the block is the genesis block, then this is a no-op, and no
|
||||
/// state changes are made.
|
||||
|
||||
Reference in New Issue
Block a user