Skip to content

Commit

Permalink
implementing most of theophile comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Khayam authored and Adam Khayam committed Apr 23, 2024
1 parent bb12666 commit 7eb0e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/serialization/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ impl Serializable for CleartextHeader {

/// Tries to serialize the cleartext header.
fn write(&self, ser: &mut Serializer) -> Result<usize, Self::Error> {
let mut n = ser.write_array(self.seed.as_bytes())?;
let mut n = ser.write_array(&self.seed[.. {SEED_LENGTH}])?;
match &self.metadata {
Some(bytes) => n += ser.write_vec(bytes)?,
None => n += ser.write_vec(&[])?,
Expand Down

0 comments on commit 7eb0e08

Please sign in to comment.