We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8868d22 + 280ced8 commit 337c404Copy full SHA for 337c404
src/stash.rs
@@ -58,7 +58,7 @@ impl<'a> StashSaveOptions<'a> {
58
/// This function is unsafe as the pointer is only valid so long as this
59
/// structure is not moved, modified, or used elsewhere.
60
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;
+ self.raw_opts.flags = self.flags.unwrap_or_else(StashFlags::empty).bits() as c_uint;
62
self.raw_opts.message = crate::call::convert(&self.message);
63
self.raw_opts.paths.count = self.pathspec_ptrs.len() as size_t;
64
self.raw_opts.paths.strings = self.pathspec_ptrs.as_ptr() as *mut _;
0 commit comments