Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit f85fabd

Browse files
authored
Fix Rustdoc Build (#6207)
1 parent 4c29f1c commit f85fabd

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

bin/node/testing/src/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ impl CloneableSpawn for TaskExecutor {
222222
impl BenchDb {
223223
/// New immutable benchmarking database.
224224
///
225-
/// See [`new`] method documentation for more information about the purpose
225+
/// See [`BenchDb::new`] method documentation for more information about the purpose
226226
/// of this structure.
227227
pub fn with_key_types(
228228
database_type: DatabaseType,

client/cli/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ pub trait SubstrateCli: Sized {
165165
/// Print the error message and quit the program in case of failure.
166166
///
167167
/// **NOTE:** This method WILL NOT exit when `--help` or `--version` (or short versions) are
168-
/// used. It will return a [`clap::Error`], where the [`kind`] is a
169-
/// [`ErrorKind::HelpDisplayed`] or [`ErrorKind::VersionDisplayed`] respectively. You must call
170-
/// [`Error::exit`] or perform a [`std::process::exit`].
168+
/// used. It will return a [`clap::Error`], where the [`clap::Error::kind`] is a
169+
/// [`clap::ErrorKind::HelpDisplayed`] or [`clap::ErrorKind::VersionDisplayed`] respectively.
170+
/// You must call [`clap::Error::exit`] or perform a [`std::process::exit`].
171171
fn try_from_iter<I>(iter: I) -> clap::Result<Self>
172172
where
173173
Self: StructOpt + Sized,

client/consensus/slots/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
//! time during which certain events can and/or must occur. This crate
2121
//! provides generic functionality for slots.
2222
23-
#![deny(warnings)]
2423
#![forbid(unsafe_code, missing_docs)]
2524

2625
mod slots;

frame/session/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ pub trait SessionHandler<ValidatorId> {
219219
/// All the key type ids this session handler can process.
220220
///
221221
/// The order must be the same as it expects them in
222-
/// [`on_new_session`](Self::on_new_session) and [`on_genesis_session`](Self::on_genesis_session).
222+
/// [`on_new_session`](Self::on_new_session<Ks>) and [`on_genesis_session`](Self::on_genesis_session<Ks>).
223223
const KEY_TYPE_IDS: &'static [KeyTypeId];
224224

225225
/// The given validator set will be used for the genesis session.

frame/staking/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
//! Rewards must be claimed for each era before it gets too old by `$HISTORY_DEPTH` using the
109109
//! `payout_stakers` call. Any account can call `payout_stakers`, which pays the reward to
110110
//! the validator as well as its nominators.
111-
//! Only the [`T::MaxNominatorRewardedPerValidator`] biggest stakers can claim their reward. This
111+
//! Only the [`Trait::MaxNominatorRewardedPerValidator`] biggest stakers can claim their reward. This
112112
//! is to limit the i/o cost to mutate storage for each nominator's account.
113113
//!
114114
//! Slashing can occur at any point in time, once misbehavior is reported. Once slashing is

primitives/runtime/src/offchain/storage_lock.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl<B: BlockNumberProvider> Lockable for BlockAndTime<B> {
241241
///
242242
/// A lock that is persisted in the DB and provides the ability to guard against
243243
/// concurrent access in an off-chain worker, with a defined expiry deadline
244-
/// based on the concrete [`Lockable`](Self::Lockable) implementation.
244+
/// based on the concrete [`Lockable`](Lockable) implementation.
245245
pub struct StorageLock<'a, L = Time> {
246246
// A storage value ref which defines the DB entry representing the lock.
247247
value_ref: StorageValueRef<'a>,
@@ -396,7 +396,7 @@ where
396396
}
397397

398398
/// Bound for a block number source
399-
/// used with [`BlockAndTime<BlockNumberProvider>`](Self::BlockAndTime).
399+
/// used with [`BlockAndTime<BlockNumberProvider>`](BlockAndTime).
400400
pub trait BlockNumberProvider {
401401
/// Type of `BlockNumber` to provide.
402402
type BlockNumber: Codec + Clone + Ord + Eq + AtLeast32Bit;

0 commit comments

Comments
 (0)