From f73f99ec97a7312cf44b6187d25863c848c1353f Mon Sep 17 00:00:00 2001 From: Daniel Perez Date: Tue, 23 Jul 2024 02:06:21 +0100 Subject: [PATCH] Fix linting issue --- src/interpreter/builtins/misc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter/builtins/misc.rs b/src/interpreter/builtins/misc.rs index d79640f..2f862ff 100644 --- a/src/interpreter/builtins/misc.rs +++ b/src/interpreter/builtins/misc.rs @@ -16,7 +16,7 @@ fn keccak256(_env: &Env, args: &[Value]) -> Result { Ok(Value::FixBytes(alloy::primitives::keccak256(data), 32)) } -fn get_type<'a>(_env: &Env, args: &[Value]) -> Result { +fn get_type(_env: &Env, args: &[Value]) -> Result { args.first() .map(|v| Value::TypeObject(v.get_type())) .ok_or(anyhow!("get_type function expects one argument"))