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
b890a28c
Commit
b890a28c
authored
3 years ago
by
Jay Pavlina
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implement core::fmt::Debug for BoundedVec (#9914)
parent
085935dd
Branches
gh-readonly-queue/master/pr-7576-09d3754319cf67aea22595823ffbcb65b7b09165
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/frame/support/src/storage/bounded_vec.rs
+3
-4
3 additions, 4 deletions
substrate/frame/support/src/storage/bounded_vec.rs
with
3 additions
and
4 deletions
substrate/frame/support/src/storage/bounded_vec.rs
+
3
−
4
View file @
b890a28c
...
...
@@ -200,13 +200,12 @@ impl<T, S> Default for BoundedVec<T, S> {
}
}
#[cfg(feature
=
"std"
)]
impl
<
T
,
S
>
std
::
fmt
::
Debug
for
BoundedVec
<
T
,
S
>
impl
<
T
,
S
>
sp_std
::
fmt
::
Debug
for
BoundedVec
<
T
,
S
>
where
T
:
std
::
fmt
::
Debug
,
T
:
sp_
std
::
fmt
::
Debug
,
S
:
Get
<
u32
>
,
{
fn
fmt
(
&
self
,
f
:
&
mut
std
::
fmt
::
Formatter
<
'_
>
)
->
std
::
fmt
::
Result
{
fn
fmt
(
&
self
,
f
:
&
mut
sp_
std
::
fmt
::
Formatter
<
'_
>
)
->
sp_
std
::
fmt
::
Result
{
f
.debug_tuple
(
"BoundedVec"
)
.field
(
&
self
.0
)
.field
(
&
Self
::
bound
())
.finish
()
}
}
...
...
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