Skip to content
Snippets Groups Projects
Commit 514bb1d8 authored by Sacha Lansky's avatar Sacha Lansky Committed by GitHub
Browse files

[fix docs compiler warnings] Glutton pallet (#14664)


* fix missing docs warnings

* fmt

* Update frame/glutton/src/lib.rs

Co-authored-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* add #![deny(missing_docs)]

---------

Co-authored-by: default avatarOliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
parent d575dc52
No related merge requests found
......@@ -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>,
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment