Skip to content

Commit 8381b72

Browse files
committed
Make MergeFileOptions::raw pub(crate)
For now I feel more comfortable not exposing this unless it is needed.
1 parent 3cc3e25 commit 8381b72

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/merge.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,11 @@ impl MergeFileOptions {
346346
}
347347

348348
/// Acquire a pointer to the underlying raw options.
349-
pub unsafe fn raw(&mut self) -> *const raw::git_merge_file_options {
350-
&self.raw as *const _
349+
///
350+
/// # Safety
351+
/// The pointer used here (or its contents) should not outlive self.
352+
pub(crate) unsafe fn raw(&mut self) -> *const raw::git_merge_file_options {
353+
&self.raw
351354
}
352355
}
353356

0 commit comments

Comments
 (0)