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

@ -31,11 +31,11 @@ pub struct OptimismBeaconConsensus {
}
impl OptimismBeaconConsensus {
/// Create a new instance of [OptimismBeaconConsensus]
/// Create a new instance of [`OptimismBeaconConsensus`]
///
/// # Panics
///
/// If given chain spec is not optimism [ChainSpec::is_optimism]
/// If given chain spec is not optimism [`ChainSpec::is_optimism`]
pub fn new(chain_spec: Arc<ChainSpec>) -> Self {
assert!(chain_spec.is_optimism(), "optimism consensus only valid for optimism chains");
Self { chain_spec }