mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 21:01:05 +00:00
Implement core::fmt::Debug for BoundedVec (#9914)
This commit is contained in:
@@ -200,13 +200,12 @@ impl<T, S> Default for BoundedVec<T, S> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "std")]
|
impl<T, S> sp_std::fmt::Debug for BoundedVec<T, S>
|
||||||
impl<T, S> std::fmt::Debug for BoundedVec<T, S>
|
|
||||||
where
|
where
|
||||||
T: std::fmt::Debug,
|
T: sp_std::fmt::Debug,
|
||||||
S: Get<u32>,
|
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()
|
f.debug_tuple("BoundedVec").field(&self.0).field(&Self::bound()).finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user