Skip to content

Commit

Permalink
Merge pull request #73 from MaxCWhitehead/update-bitfiled-rle
Browse files Browse the repository at this point in the history
fix: Fix result error type for bitfield-rle update to 0.2.1
  • Loading branch information
gschup committed Apr 1, 2024
2 parents f0c14dc + f60a755 commit c5b521f
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
Expand Up @@ -18,7 +18,7 @@ wasm-bindgen = ["instant/wasm-bindgen", "getrandom/js"]
serde = { version = "1.0", features = ["derive"] }
bincode = "1.3"
rand = "0.8"
bitfield-rle = "0.2"
bitfield-rle = "0.2.1"
parking_lot = "0.11"
instant = "0.1"
bytemuck = {version = "1.9", features = ["derive"]}
Expand Down
2 changes: 1 addition & 1 deletion src/network/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub(crate) fn delta_encode<'a>(
pub(crate) fn decode(
reference: &[u8],
data: &[u8],
) -> Result<Vec<Vec<u8>>, Box<dyn std::error::Error>> {
) -> Result<Vec<Vec<u8>>, Box<dyn std::error::Error + Send + Sync>> {
// decode the RLE encoding first
let buf = bitfield_rle::decode(data)?;

Expand Down

0 comments on commit c5b521f

Please sign in to comment.