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:
@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user