Skip to content

Commit

Permalink
Merge pull request #56 from meilisearch/upgrade-dependencies
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
irevoire authored Jan 8, 2025
2 parents 323a77e + cbba89f commit 2d68e32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ edition = "2018"
license = "MIT"

[dependencies]
bytemuck = { version = "1.16.1", features = ["derive"] }
bytemuck = { version = "1.21.0", features = ["derive"] }
byteorder = "1.5.0"
either = { version = "1.13.0", default-features = false }
flate2 = { version = "1.0", optional = true }
lz4_flex = { version = "0.11.3", optional = true }
rayon = { version = "1.10.0", optional = true }
snap = { version = "1.1.1", optional = true }
tempfile = { version = "3.10.1", optional = true }
zstd = { version = "0.13.1", optional = true }
tempfile = { version = "3.15.0", optional = true }
zstd = { version = "0.13.2", optional = true }

[dev-dependencies]
criterion = { version = "0.3", features = ["html_reports"] }
quickcheck = "0.9"
criterion = { version = "0.5", features = ["html_reports"] }
quickcheck = "1.0"
rand = "0.8.5"
grenad-0-4 = { version = "0.4.6", package = "grenad" }
grenad-0-4 = { version = "0.4.7", package = "grenad" }

[[bench]]
name = "index-levels"
Expand Down
2 changes: 1 addition & 1 deletion src/sorter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ impl EntryBoundAlignedBuffer {
/// Allocates a new buffer of the given size, it is correctly aligned to store `EntryBound`s.
fn new(size: usize) -> EntryBoundAlignedBuffer {
let entry_bound_size = size_of::<EntryBound>();
let size = (size + entry_bound_size - 1) / entry_bound_size * entry_bound_size;
let size = size.div_ceil(entry_bound_size) * entry_bound_size;
let layout = Layout::from_size_align(size, align_of::<EntryBound>()).unwrap();
let ptr = unsafe { alloc(layout) };
let Some(ptr) = NonNull::new(ptr) else {
Expand Down

0 comments on commit 2d68e32

Please sign in to comment.