summaryrefslogtreecommitdiffstats
path: root/vendor/git2/src/stash.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/git2/src/stash.rs')
-rw-r--r--vendor/git2/src/stash.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/git2/src/stash.rs b/vendor/git2/src/stash.rs
index bff9e49de..6fcd525d2 100644
--- a/vendor/git2/src/stash.rs
+++ b/vendor/git2/src/stash.rs
@@ -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 _;