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

Commit 26ece81

Browse files
Sacha Lanskyggwpez
Sacha Lansky
andauthored
[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>
1 parent ba6649b commit 26ece81

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

frame/glutton/src/lib.rs

+17-3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
//! `Compute` and `Storage` parameters the pallet consumes the adequate amount
2626
//! of weight.
2727
28+
#![deny(missing_docs)]
2829
#![cfg_attr(not(feature = "std"), no_std)]
2930

3031
#[cfg(feature = "runtime-benchmarks")]
@@ -75,11 +76,20 @@ pub mod pallet {
7576
#[pallet::generate_deposit(pub(super) fn deposit_event)]
7677
pub enum Event {
7778
/// The pallet has been (re)initialized.
78-
PalletInitialized { reinit: bool },
79+
PalletInitialized {
80+
/// Whether the pallet has been re-initialized.
81+
reinit: bool,
82+
},
7983
/// The computation limit has been updated.
80-
ComputationLimitSet { compute: FixedU64 },
84+
ComputationLimitSet {
85+
/// The computation limit.
86+
compute: FixedU64,
87+
},
8188
/// The storage limit has been updated.
82-
StorageLimitSet { storage: FixedU64 },
89+
StorageLimitSet {
90+
/// The storage limit.
91+
storage: FixedU64,
92+
},
8393
}
8494

8595
#[pallet::error]
@@ -131,10 +141,14 @@ pub mod pallet {
131141
#[pallet::genesis_config]
132142
#[derive(DefaultNoBound)]
133143
pub struct GenesisConfig<T: Config> {
144+
/// The compute limit.
134145
pub compute: FixedU64,
146+
/// The storage limit.
135147
pub storage: FixedU64,
148+
/// The amount of trash data for wasting proof size.
136149
pub trash_data_count: u32,
137150
#[serde(skip)]
151+
/// The required configuration field.
138152
pub _config: sp_std::marker::PhantomData<T>,
139153
}
140154

0 commit comments

Comments
 (0)