mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
[fix docs compiler warnings] Glutton pallet (#14664)
* fix missing docs warnings * fmt * Update frame/glutton/src/lib.rs Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * add #![deny(missing_docs)] --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
//! `Compute` and `Storage` parameters the pallet consumes the adequate amount
|
||||
//! of weight.
|
||||
|
||||
#![deny(missing_docs)]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
@@ -75,11 +76,20 @@ pub mod pallet {
|
||||
#[pallet::generate_deposit(pub(super) fn deposit_event)]
|
||||
pub enum Event {
|
||||
/// The pallet has been (re)initialized.
|
||||
PalletInitialized { reinit: bool },
|
||||
PalletInitialized {
|
||||
/// Whether the pallet has been re-initialized.
|
||||
reinit: bool,
|
||||
},
|
||||
/// The computation limit has been updated.
|
||||
ComputationLimitSet { compute: FixedU64 },
|
||||
ComputationLimitSet {
|
||||
/// The computation limit.
|
||||
compute: FixedU64,
|
||||
},
|
||||
/// The storage limit has been updated.
|
||||
StorageLimitSet { storage: FixedU64 },
|
||||
StorageLimitSet {
|
||||
/// The storage limit.
|
||||
storage: FixedU64,
|
||||
},
|
||||
}
|
||||
|
||||
#[pallet::error]
|
||||
@@ -131,10 +141,14 @@ pub mod pallet {
|
||||
#[pallet::genesis_config]
|
||||
#[derive(DefaultNoBound)]
|
||||
pub struct GenesisConfig<T: Config> {
|
||||
/// The compute limit.
|
||||
pub compute: FixedU64,
|
||||
/// The storage limit.
|
||||
pub storage: FixedU64,
|
||||
/// The amount of trash data for wasting proof size.
|
||||
pub trash_data_count: u32,
|
||||
#[serde(skip)]
|
||||
/// The required configuration field.
|
||||
pub _config: sp_std::marker::PhantomData<T>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user