Skip to content

Commit

Permalink
[vm] Fixed clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemitenkov committed Jul 26, 2022
1 parent b0e5396 commit 9bcecc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/src/delta_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub fn serialize(value: &u128) -> Vec<u8> {
}

/// Deserializes value for delta application.
pub fn deserialize(value_bytes: &Vec<u8>) -> u128 {
pub fn deserialize(value_bytes: &[u8]) -> u128 {
bcs::from_bytes(value_bytes).expect("unexpected deserialization error")
}

Expand Down

0 comments on commit 9bcecc8

Please sign in to comment.