From 280ced8494558d63888532c06783977215cfe77c Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 29 Jul 2023 08:10:23 -0700 Subject: [PATCH] Fix build error due to bitflags update --- src/stash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stash.rs b/src/stash.rs index bff9e49dee..6fcd525d2e 100644 --- a/src/stash.rs +++ b/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 _;