Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 5013993

Browse files
author
Hendrik van Antwerpen
authored
Merge pull request #149 from github/bump-bitvec
Bump bitvec to 1.0
2 parents 789fb32 + dbeaacf commit 5013993

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stack-graphs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ json = ["serde", "serde_json"]
2121
test = false
2222

2323
[dependencies]
24-
bitvec = "0.22"
24+
bitvec = "1.0"
2525
controlled-option = "0.4"
2626
either = "1.6"
2727
fxhash = "0.2"

stack-graphs/src/arena.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ where
361361
/// Contains a set of handles, encoded efficiently using a bit set.
362362
#[repr(C)]
363363
pub struct HandleSet<T> {
364-
elements: BitVec<bitvec::order::Lsb0, u32>,
364+
elements: BitVec<u32, bitvec::order::Lsb0>,
365365
_phantom: PhantomData<T>,
366366
}
367367

@@ -409,7 +409,7 @@ impl<T> HandleSet<T> {
409409

410410
/// Returns a pointer to this set's storage.
411411
pub(crate) fn as_ptr(&self) -> *const u32 {
412-
self.elements.as_raw_ptr()
412+
self.elements.as_bitptr().pointer()
413413
}
414414

415415
/// Returns the number of instances stored in this arena.

0 commit comments

Comments
 (0)