Fix doc build with --all-features (#8277)

* implement

* make default pre/post_upgrade

* simplify Cargo.toml

* revert removal of outdated/private links

* link in pallet-mmr
This commit is contained in:
Guillaume Thiolliere
2021-03-05 16:08:44 +01:00
committed by GitHub
parent d0530d0f2a
commit 9c4e4d453c
40 changed files with 59 additions and 57 deletions
@@ -49,7 +49,7 @@ pub fn generate_voter_cache<T: Config>(
/// Create a function the returns the index a voter in the snapshot.
///
/// The returning index type is the same as the one defined in [`T::CompactSolution::Voter`].
/// The returning index type is the same as the one defined in `T::CompactSolution::Voter`.
///
/// ## Warning
///
@@ -92,7 +92,7 @@ pub fn voter_index_fn_linear<T: Config>(
/// Create a function the returns the index a targets in the snapshot.
///
/// The returning index type is the same as the one defined in [`T::CompactSolution::Target`].
/// The returning index type is the same as the one defined in `T::CompactSolution::Target`.
pub fn target_index_fn_linear<T: Config>(
snapshot: &Vec<T::AccountId>,
) -> Box<dyn Fn(&T::AccountId) -> Option<CompactTargetIndexOf<T>> + '_> {