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:
Thomas Coratger
2024-06-03 15:21:45 +02:00
committed by GitHub
parent 34af610b8e
commit 7c17c6e469
440 changed files with 2166 additions and 2145 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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.