Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
c4a016b2
Commit
c4a016b2
authored
1 year ago
by
Sacha Lansky
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[fix docs compiler warnings] Nicks pallet (#14668)
* fix missing docs warning * fmt * add #![deny(missing_docs)]
parent
bb02ba63
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/frame/nicks/src/lib.rs
+26
-6
26 additions, 6 deletions
substrate/frame/nicks/src/lib.rs
with
26 additions
and
6 deletions
substrate/frame/nicks/src/lib.rs
+
26
−
6
View file @
c4a016b2
...
...
@@ -36,6 +36,7 @@
//! * `clear_name` - Remove an account's associated name; the deposit is returned.
//! * `kill_name` - Forcibly remove the associated name; the deposit is lost.
#![deny(missing_docs)]
#![cfg_attr(not(feature
=
"std"
),
no_std)]
use
frame_support
::
traits
::{
Currency
,
OnUnbalanced
,
ReservableCurrency
};
...
...
@@ -86,18 +87,37 @@ pub mod pallet {
#[pallet::generate_deposit(pub(super)
fn
deposit_event)]
pub
enum
Event
<
T
:
Config
>
{
/// A name was set.
NameSet
{
who
:
T
::
AccountId
},
NameSet
{
/// The account for which the name was set.
who
:
T
::
AccountId
,
},
/// A name was forcibly set.
NameForced
{
target
:
T
::
AccountId
},
NameForced
{
/// The account whose name was forcibly set.
target
:
T
::
AccountId
,
},
/// A name was changed.
NameChanged
{
who
:
T
::
AccountId
},
NameChanged
{
/// The account for which the name was changed.
who
:
T
::
AccountId
,
},
/// A name was cleared, and the given balance returned.
NameCleared
{
who
:
T
::
AccountId
,
deposit
:
BalanceOf
<
T
>
},
NameCleared
{
/// The account for which the name was cleared.
who
:
T
::
AccountId
,
/// The deposit returned.
deposit
:
BalanceOf
<
T
>
,
},
/// A name was removed and the given balance slashed.
NameKilled
{
target
:
T
::
AccountId
,
deposit
:
BalanceOf
<
T
>
},
NameKilled
{
/// The account for which the name was removed.
target
:
T
::
AccountId
,
/// The deposit returned.
deposit
:
BalanceOf
<
T
>
,
},
}
/// Error for the
n
icks pallet.
/// Error for the
N
icks pallet.
#[pallet::error]
pub
enum
Error
<
T
>
{
/// A name is too short.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment