Skip to content

Commit

Permalink
some cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
sokorototo committed Nov 15, 2022
1 parent c22c730 commit 2efc81c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions vach/src/global/reg_entry.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use std::{io::Read, fmt};
use ed25519_dalek::Signature;

use super::{result::InternalResult, flags::Flags};

#[cfg(feature = "crypto")]
Expand Down Expand Up @@ -99,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 + Signature::BYTE_SIZE);
let mut buffer = Vec::with_capacity(RegistryEntry::MIN_SIZE + crypto::Signature::BYTE_SIZE);

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 2efc81c

Please sign in to comment.