Skip to content

Commit

Permalink
use released bitmagic
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Feb 14, 2022
1 parent 8bae3d6 commit f190db9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ parallel = ["rayon"]

[dependencies]
az = "1.0.0"
bitmagic = { version = "0.2.0", git = "https://github.com/luizirber/bitmagic-rs", branch = "cross_testing" }
bytecount = "0.6.0"
byteorder = "1.4.3"
cfg-if = "1.0"
Expand Down Expand Up @@ -89,3 +88,4 @@ wasm-bindgen-test = "0.3.0"

### These crates don't compile on wasm
[target.'cfg(not(all(target_arch = "wasm32", target_vendor="unknown")))'.dependencies]
bitmagic = "0.2.0"
1 change: 1 addition & 0 deletions src/core/src/sketch/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pub mod hyperloglog;
pub mod minhash;

#[cfg(not(target_arch = "wasm32"))]
pub mod nodegraph;

use serde::{Deserialize, Serialize};
Expand Down
2 changes: 1 addition & 1 deletion src/core/src/sketch/nodegraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl Nodegraph {
slice::from_raw_parts(slice.as_ptr() as *const u8, len)
};

wtr.write_all(&buf)?;
wtr.write_all(buf)?;
// Replace when byteorder PR is released

if rem != 0 {
Expand Down

0 comments on commit f190db9

Please sign in to comment.