Skip to content

Commit b7e7cfe

Browse files
committed
join is unsafe
1 parent 4fcc30f commit b7e7cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/allocator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl Allocator {
4040
///
4141
/// # Safety
4242
/// - `worker_index` must be uniquely assigned to this worker thread/process.
43-
pub fn join(path: impl AsRef<Path>, worker_index: u32) -> Result<Self, Error> {
43+
pub unsafe fn join(path: impl AsRef<Path>, worker_index: u32) -> Result<Self, Error> {
4444
let (header, file_size) = crate::init::join(path)?;
4545

4646
// Check if the worker index is valid.

0 commit comments

Comments
 (0)