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

Commit

Permalink
Implement core::fmt::Debug for BoundedVec (#9914)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayPavlina committed Oct 2, 2021
1 parent c60ccc0 commit fdce20c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions frame/support/src/storage/bounded_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit fdce20c

Please sign in to comment.