Skip to content

Commit

Permalink
Fix for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
poplexity committed Jan 17, 2024
1 parent 6ef0973 commit 5b49911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/antelope/src/chain/block_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct BlockId {
}

impl BlockId {
pub fn from_bytes(bytes: &Vec<u8>) -> Result<Self, String> {
pub fn from_bytes(bytes: &[u8]) -> Result<Self, String> {
if bytes.len() != 32 {
return Err(String::from(
"BlockId.from_bytes expected bytes length of 32",
Expand Down

0 comments on commit 5b49911

Please sign in to comment.