From cd0a8bc950cafa77c0a7137d11774eb9ea31d910 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sat, 10 Aug 2019 09:51:34 +0200 Subject: [PATCH] rust: derive Debug trait on some abstractions Such as ExecutionResult and ExecutionMessage. --- bindings/rust/evmc-vm/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/rust/evmc-vm/src/lib.rs b/bindings/rust/evmc-vm/src/lib.rs index 0180447..8d926a6 100644 --- a/bindings/rust/evmc-vm/src/lib.rs +++ b/bindings/rust/evmc-vm/src/lib.rs @@ -30,6 +30,7 @@ pub trait EvmcVm { } /// EVMC result structure. +#[derive(Debug)] pub struct ExecutionResult { status_code: ffi::evmc_status_code, gas_left: i64, @@ -38,6 +39,7 @@ pub struct ExecutionResult { } /// EVMC execution message structure. +#[derive(Debug)] pub struct ExecutionMessage { kind: ffi::evmc_call_kind, flags: u32,