Skip to content

Commit

Permalink
Merge pull request #974 from ehuss/fix-bitflags-change
Browse files Browse the repository at this point in the history
Fix build error due to bitflags update
  • Loading branch information
ehuss authored Jul 29, 2023
2 parents 8868d22 + 280ced8 commit 337c404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl<'a> StashSaveOptions<'a> {
/// This function is unsafe as the pointer is only valid so long as this
/// structure is not moved, modified, or used elsewhere.
pub unsafe fn raw(&mut self) -> *const raw::git_stash_save_options {
self.raw_opts.flags = self.flags.unwrap_or_else(StashFlags::empty).bits as c_uint;
self.raw_opts.flags = self.flags.unwrap_or_else(StashFlags::empty).bits() as c_uint;
self.raw_opts.message = crate::call::convert(&self.message);
self.raw_opts.paths.count = self.pathspec_ptrs.len() as size_t;
self.raw_opts.paths.strings = self.pathspec_ptrs.as_ptr() as *mut _;
Expand Down

0 comments on commit 337c404

Please sign in to comment.