Skip to content

Commit 337c404

Browse files
authored
Merge pull request #974 from ehuss/fix-bitflags-change
Fix build error due to bitflags update
2 parents 8868d22 + 280ced8 commit 337c404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/stash.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl<'a> StashSaveOptions<'a> {
5858
/// This function is unsafe as the pointer is only valid so long as this
5959
/// structure is not moved, modified, or used elsewhere.
6060
pub unsafe fn raw(&mut self) -> *const raw::git_stash_save_options {
61-
self.raw_opts.flags = self.flags.unwrap_or_else(StashFlags::empty).bits as c_uint;
61+
self.raw_opts.flags = self.flags.unwrap_or_else(StashFlags::empty).bits() as c_uint;
6262
self.raw_opts.message = crate::call::convert(&self.message);
6363
self.raw_opts.paths.count = self.pathspec_ptrs.len() as size_t;
6464
self.raw_opts.paths.strings = self.pathspec_ptrs.as_ptr() as *mut _;

0 commit comments

Comments
 (0)