Skip to content

Commit 197106b

Browse files
committed
Drop Copy/Clone from git_merge_file_result
I don't feel comfortable making this copy, since it could accidentally lead to creating multiple copies, which could then be confused as the memory of these needs to be managed.
1 parent 8381b72 commit 197106b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

libgit2-sys/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1373,7 +1373,6 @@ pub struct git_merge_file_options {
13731373
}
13741374

13751375
#[repr(C)]
1376-
#[derive(Clone, Copy)]
13771376
pub struct git_merge_file_result {
13781377
pub automergeable: c_uint,
13791378
pub path: *const c_char,

src/merge.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ impl<'repo> Binding for MergeFileResult<'repo> {
395395
}
396396
}
397397
fn raw(&self) -> raw::git_merge_file_result {
398-
self.raw
398+
unimplemented!()
399399
}
400400
}
401401

0 commit comments

Comments
 (0)