mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 01:07:57 +00:00
Token swap pallet benchmarks (#1174)
* token swap benchmarks * spellcheck
This commit is contained in:
committed by
Bastian Köcher
parent
c0df990b90
commit
4b525f4fe1
@@ -131,6 +131,12 @@ pub trait Size {
|
||||
fn size_hint(&self) -> u32;
|
||||
}
|
||||
|
||||
impl Size for &[u8] {
|
||||
fn size_hint(&self) -> u32 {
|
||||
self.len() as _
|
||||
}
|
||||
}
|
||||
|
||||
impl Size for () {
|
||||
fn size_hint(&self) -> u32 {
|
||||
0
|
||||
|
||||
Reference in New Issue
Block a user