We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1e933b commit 3cc3e25Copy full SHA for 3cc3e25
libgit2-sys/lib.rs
@@ -1368,7 +1368,7 @@ pub struct git_merge_file_options {
1368
pub our_label: *const c_char,
1369
pub their_label: *const c_char,
1370
pub favor: git_merge_file_favor_t,
1371
- pub flags: git_merge_file_flag_t,
+ pub flags: u32,
1372
pub marker_size: c_ushort,
1373
}
1374
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