We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fcc30f commit b7e7cfeCopy full SHA for b7e7cfe
src/allocator.rs
@@ -40,7 +40,7 @@ impl Allocator {
40
///
41
/// # Safety
42
/// - `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> {
+ pub unsafe fn join(path: impl AsRef<Path>, worker_index: u32) -> Result<Self, Error> {
44
let (header, file_size) = crate::init::join(path)?;
45
46
// Check if the worker index is valid.
0 commit comments