chore: rearrange impl order (#1796)

This commit is contained in:
Matthias Seitz
2023-03-16 15:22:08 +01:00
committed by GitHub
parent 498687b761
commit 9f00d48402
6 changed files with 57 additions and 57 deletions

View File

@ -83,18 +83,18 @@ impl TransactionKind {
}
impl Encodable for TransactionKind {
fn length(&self) -> usize {
match self {
TransactionKind::Call(to) => to.length(),
TransactionKind::Create => ([]).length(),
}
}
fn encode(&self, out: &mut dyn BufMut) {
match self {
TransactionKind::Call(to) => to.encode(out),
TransactionKind::Create => ([]).encode(out),
}
}
fn length(&self) -> usize {
match self {
TransactionKind::Call(to) => to.length(),
TransactionKind::Create => ([]).length(),
}
}
}
impl Decodable for TransactionKind {