Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer committed Jan 12, 2024
1 parent b9d532b commit 6be931d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tls13utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ pub(crate) fn encode_length_u8(bytes: &[U8]) -> Result<Bytes, TLSError> {
Err(PAYLOAD_TOO_LONG)
} else {
let mut lenb = Bytes::new_alloc(1 + bytes.len());
lenb.push((len as u8).into());
lenb.push(U8(len as u8));
lenb.0.extend_from_slice(bytes);
Ok(lenb)
}
Expand Down

0 comments on commit 6be931d

Please sign in to comment.