From b9de8476dda956863559737e0adc8bc05a4a02fa Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 24 Jul 2019 13:27:15 +0100 Subject: [PATCH] rust: ExecutionContext::get_tx_context should not require a mutable self --- bindings/rust/evmc-vm/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/rust/evmc-vm/src/lib.rs b/bindings/rust/evmc-vm/src/lib.rs index 29029f6..597488c 100644 --- a/bindings/rust/evmc-vm/src/lib.rs +++ b/bindings/rust/evmc-vm/src/lib.rs @@ -184,7 +184,7 @@ impl<'a> ExecutionContext<'a> { } } - pub fn get_tx_context(&mut self) -> &ExecutionTxContext { + pub fn get_tx_context(&self) -> &ExecutionTxContext { &self.tx_context }