Skip to content

Commit

Permalink
Tidy up some style and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Aug 13, 2015
1 parent e894583 commit 3eff94e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ impl<'repo> Reference<'repo> {
///
/// The new reference will be written to disk, overwriting the given
/// reference.
pub fn set_target(&mut self, id: Oid, msg: &str) -> Result<Reference<'repo>, Error> {
pub fn set_target(&mut self, id: Oid, reflog_msg: &str)
-> Result<Reference<'repo>, Error> {
let mut raw = 0 as *mut raw::git_reference;
let msg = try!(CString::new(msg));
let msg = try!(CString::new(reflog_msg));
unsafe {
try_call!(raw::git_reference_set_target(&mut raw, self.raw,
id.raw(), msg));
Expand Down
3 changes: 1 addition & 2 deletions src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,7 @@ impl Repository {
try_call!(raw::git_merge_commits(&mut raw, self.raw,
our_commit.raw(),
their_commit.raw(),
opts.map_or(0 as *const raw::git_merge_options,
|o| o.raw())));
opts.map(|o| o.raw())));
Ok(Binding::from_raw(raw))
}
}
Expand Down

0 comments on commit 3eff94e

Please sign in to comment.