Skip to content

Commit

Permalink
Rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbabcock committed Jan 9, 2025
1 parent d89f6ee commit 482d7cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ impl HashPacket {

#[inline]
pub fn set_to(&mut self, data: &[u8]) {
debug_assert!(data.len() < PACKET_SIZE, "data large enough to process packet");
debug_assert!(
data.len() < PACKET_SIZE,
"data large enough to process packet"
);
self.buf_index = data.len();
if !data.is_empty() {
self.buf[..data.len()].copy_from_slice(data);
Expand Down

0 comments on commit 482d7cb

Please sign in to comment.