Skip to content

Commit faaa3eb

Browse files
committed
chunk_mut
1 parent 8bf9ae0 commit faaa3eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["algorithm-macro"]
33

44
[package]
55
name = "algorithm"
6-
version = "0.1.11"
6+
version = "0.1.12"
77
edition = "2021"
88
authors = ["tickbh <[email protected]>"]
99
description = "about algorithm data structure, now has ttl with lru/lru-k/lfu/arc and slab/rbtree/roaring_bitmap/timer_wheelss, 关于算法常用的数据结构"

src/buf/binary_mut.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ unsafe impl BtMut for BinaryMut {
389389
}
390390
unsafe {
391391
slice::from_raw_parts_mut(
392-
self.as_mut_ptr().add(self.wpos) as *mut MaybeUninit<u8>,
392+
self.vec.as_mut_ptr().add(self.wpos) as *mut MaybeUninit<u8>,
393393
self.vec.capacity() - self.wpos,
394394
)
395395
}

0 commit comments

Comments
 (0)