Skip to content

Commit

Permalink
fix bug in SharedBytesBuilder::apply_unfilled
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLuq committed Aug 26, 2024
1 parent 07b9f07 commit dc74c55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bytedata"
version = "0.1.7"
version = "0.1.8"
edition = "2021"
rust-version = "1.75"
description = "Representation of a byte slice that is either static, borrowed, or shared."
Expand Down
2 changes: 1 addition & 1 deletion src/shared_bytes_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ impl SharedBytesBuilder {
);
#[allow(clippy::cast_possible_truncation)]
{
self.len += len as u32;
self.off += len as u32;
};
ret
}
Expand Down

0 comments on commit dc74c55

Please sign in to comment.