Skip to content

Commit

Permalink
fixup! fixup! Transport: set libgit2's last_error (rust-lang#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
kim committed Jun 25, 2020
1 parent 88b37be commit 7fd529b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport.rs
Expand Up @@ -347,7 +347,7 @@ unsafe fn set_err_io(e: &io::Error) {
}

unsafe fn set_err(e: &Error) {
let s = CString::new(e.to_string()).unwrap();
let s = CString::new(e.message())).unwrap();
raw::git_error_set_str(e.raw_class() as c_int, s.as_ptr());
}

Expand Down

0 comments on commit 7fd529b

Please sign in to comment.