Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sokorototo committed Nov 15, 2022
1 parent 2efc81c commit 9d6cf1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vach/src/global/reg_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl RegistryEntry {

/// Serializes a [`RegistryEntry`] struct into an array of bytes
pub(crate) fn bytes(&self, id_length: &u16) -> Vec<u8> {
let mut buffer = Vec::with_capacity(RegistryEntry::MIN_SIZE + crypto::Signature::BYTE_SIZE);
let mut buffer = Vec::with_capacity(RegistryEntry::MIN_SIZE + 64);

buffer.extend_from_slice(&self.flags.bits().to_le_bytes());
buffer.extend_from_slice(&self.content_version.to_le_bytes());
Expand Down

0 comments on commit 9d6cf1c

Please sign in to comment.