From 5b4991164081402434801489688a247fa7c1df90 Mon Sep 17 00:00:00 2001 From: Jesse Schulman Date: Tue, 16 Jan 2024 22:37:23 -0800 Subject: [PATCH] Fix for clippy --- crates/antelope/src/chain/block_id.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/antelope/src/chain/block_id.rs b/crates/antelope/src/chain/block_id.rs index 04dc72c..064318b 100644 --- a/crates/antelope/src/chain/block_id.rs +++ b/crates/antelope/src/chain/block_id.rs @@ -8,7 +8,7 @@ pub struct BlockId { } impl BlockId { - pub fn from_bytes(bytes: &Vec) -> Result { + pub fn from_bytes(bytes: &[u8]) -> Result { if bytes.len() != 32 { return Err(String::from( "BlockId.from_bytes expected bytes length of 32",