Skip to content

Commit

Permalink
Fix build error due to bitflags update
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jul 29, 2023
1 parent 8868d22 commit 280ced8
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 280ced8

Please sign in to comment.