We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 384276a commit 79ca67aCopy full SHA for 79ca67a
libgit2-sys/lib.rs
@@ -1357,7 +1357,7 @@ pub struct git_merge_file_options {
1357
pub our_label: *const c_char,
1358
pub their_label: *const c_char,
1359
pub favor: git_merge_file_favor_t,
1360
- pub flags: git_merge_file_flag_t,
+ pub flags: u32,
1361
pub marker_size: c_ushort,
1362
}
1363
src/merge.rs
@@ -282,9 +282,9 @@ impl MergeFileOptions {
282
283
fn flag(&mut self, opt: raw::git_merge_file_flag_t, val: bool) -> &mut MergeFileOptions {
284
if val {
285
- self.raw.flags |= opt;
+ self.raw.flags |= opt as u32;
286
} else {
287
- self.raw.flags &= !opt;
+ self.raw.flags &= !opt as u32;
288
289
self
290
0 commit comments