Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/allocator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Allocator {
///
/// # Safety
/// - `worker_index` must be uniquely assigned to this worker thread/process.
pub fn join(path: impl AsRef<Path>, worker_index: u32) -> Result<Self, Error> {
pub unsafe fn join(path: impl AsRef<Path>, worker_index: u32) -> Result<Self, Error> {
let (header, file_size) = crate::init::join(path)?;

// Check if the worker index is valid.
Expand Down