Skip to content

Commit 05a8778

Browse files
authored
docs: fix warnings
1 parent 7918210 commit 05a8778

File tree

26 files changed

+41
-35
lines changed

26 files changed

+41
-35
lines changed

demo/node/src/chain_spec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn runtime_wasm() -> &'static [u8] {
3636
}
3737

3838
/// Creates chain-spec according to the config obtained by wizards.
39-
/// [JValue] is returned instead of [sc_service::GenericChainSpec] in order to avoid
39+
/// [serde_json::Value] is returned instead of [sc_service::GenericChainSpec] in order to avoid
4040
/// GPL code in the toolkit.
4141
pub fn pc_create_chain_spec(config: &CreateChainSpecConfig<SessionKeys>) -> serde_json::Value {
4242
let runtime_genesis_config = partner_chains_demo_runtime::RuntimeGenesisConfig {

demo/node/src/service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ type FullSelectChain = sc_consensus::LongestChain<FullBackend, Block>;
3535
/// imported and generated.
3636
const GRANDPA_JUSTIFICATION_PERIOD: u32 = 512;
3737

38-
/// This function provides dependencies of [partner_chains_nodes_command::PartnerChainsSubcommand].
39-
/// It is not mandatory to have such a dedicated function, [partial_service] could be enough,
38+
/// This function provides dependencies of [partner_chains_node_commands::PartnerChainsSubcommand].
39+
/// It is not mandatory to have such a dedicated function, [new_partial] could be enough,
4040
/// however using such a specialized function decreases number of possible failures and wiring time.
4141
pub fn new_pc_command_deps(
4242
config: &Configuration,

toolkit/block-producer-fees/rpc/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! ## Contents
44
//!
5-
//! This crate provides the [BlockProducerFeesRpcApiServer] trait defining the JsonRPC method to display
5+
//! This crate provides the [BlockProducerFeesRpcServer] trait defining the JsonRPC method to display
66
//! block producer fees and its concrete implementation [BlockProducerFeesRpc].
77
//! ## Usage - PC Builders
88
//!
@@ -65,7 +65,7 @@ pub trait BlockProducerFeesRpc<AccountId: Decode> {
6565
fn get_block_producer_fees(&self) -> RpcResult<Vec<FeesSettings<AccountId>>>;
6666
}
6767

68-
/// Concrete implementation of [BlockProducerFeesRpcApiServer] that uses [BlockProducerFeesRpcApi] for querying runtime storage.
68+
/// Concrete implementation of [BlockProducerFeesRpcServer] that uses [BlockProducerFeesApi] for querying runtime storage.
6969
#[derive(new)]
7070
pub struct BlockProducerFeesRpc<C, Block, AccountId> {
7171
client: Arc<C>,

toolkit/block-producer-metadata/pallet/src/benchmarking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
//!
6262
//! Afterwards, the pallet can be benchmarked using Polkadot SDK's [omini-bencher](https://github.com/paritytech/polkadot-sdk/tree/master/substrate/utils/frame/omni-bencher).
6363
64-
#![cfg(feature = "runtime-benchmarks")]
64+
#![cfg(any(feature = "runtime-benchmarks", doc))]
6565
use super::*;
6666
use frame_benchmarking::v2::*;
6767
use frame_system::RawOrigin;

toolkit/committee-selection/authority-selection-inherents/src/authority_selection_inputs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use plutus::*;
44
use scale_info::TypeInfo;
55
use sidechain_domain::*;
66

7-
/// Inherent data type provided by [AriadneInherentDataProvider].
7+
/// Inherent data type provided by [crate::AriadneInherentDataProvider].
88
/// The part of data for selection of authorities that comes from the main chain.
99
/// It is unfiltered, so the selection algorithm should filter out invalid candidates.
1010
#[derive(Clone, Debug, Encode, Decode, DecodeWithMemTracking, TypeInfo, PartialEq, Eq)]

toolkit/committee-selection/authority-selection-inherents/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl<AuthorityId: Clone, AuthorityKeys: Clone> CommitteeMemberT
110110
}
111111
}
112112

113-
/// Trait to try extract [T] from [CandidateKeys].
113+
/// Trait to try extract implementing type from [CandidateKeys].
114114
pub trait MaybeFromCandidateKeys: OpaqueKeys + Decode + Sized {
115115
/// Depends on `Decode` that is derived by `impl_opaque_keys!`
116116
fn maybe_from(keys: &CandidateKeys) -> Option<Self> {

toolkit/committee-selection/pallet/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ pub mod pallet {
206206
type Error = InherentError;
207207
const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER;
208208

209-
/// Responsible for calling [Call:set] on each block by the block author, if the validator list changed
209+
/// Responsible for calling [Call::set] on each block by the block author, if the validator list changed
210210
fn create_inherent(data: &InherentData) -> Option<Self::Call> {
211211
if NextCommittee::<T>::exists() {
212212
None

toolkit/committee-selection/pallet/src/migrations/v1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use {
99

1010
use super::v0;
1111

12-
/// [VersionedMigration] parametrized for v0 to v1 migration.
12+
/// [frame_support::migrations::VersionedMigration] parametrized for v0 to v1 migration.
1313
pub type LegacyToV1Migration<T> = frame_support::migrations::VersionedMigration<
1414
0, // The migration will only execute when the on-chain storage version is 0
1515
1, // The on-chain storage version will be set to 1 after the migration is complete

toolkit/committee-selection/primitives/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ sp_api::decl_runtime_apis! {
140140
{
141141
/// Returns main chain scripts
142142
fn get_main_chain_scripts() -> MainChainScripts;
143-
/// Returns next unset [ScEpochNumber]
143+
/// Returns next unset [sidechain_domain::ScEpochNumber]
144144
fn get_next_unset_epoch_number() -> ScEpochNumber;
145145

146146
#[changed_in(2)]

toolkit/data-sources/mock/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ pub use block::BlockDataSourceMock;
5353
#[cfg(feature = "candidate-source")]
5454
mod candidate;
5555
#[cfg(feature = "candidate-source")]
56-
pub use candidate::{AuthoritySelectionDataSourceMock, MockRegistrationsConfig};
56+
pub use candidate::{
57+
AuthoritySelectionDataSourceMock, MockEpochCandidates, MockRegistrationsConfig,
58+
};
5759

5860
#[cfg(feature = "governed-map")]
5961
mod governed_map;

0 commit comments

Comments
 (0)