Skip to content

Commit

Permalink
Update stash.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
yangnianbing authored Feb 29, 2024
1 parent e3706a2 commit 050e415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ impl<'a> StashSaveOptions<'a> {
);
opts
}

/// Customize optional `message` field
pub fn message(&mut self, message: Option<&str>) -> &mut Self {
let message = crate::opt_cstr(message).unwrap_or_default();
self.message = message;
self
}

/// Customize optional `flags` field
pub fn flags(&mut self, flags: Option<StashFlags>) -> &mut Self {
self.flags = flags;
Expand Down

0 comments on commit 050e415

Please sign in to comment.