Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/libgit2-sys/lib.rs b/libgit2-sys/lib.rs
- index 48f2511..1fcc156 100644
- --- a/libgit2-sys/lib.rs
- +++ b/libgit2-sys/lib.rs
- @@ -1583,7 +1583,7 @@ git_enum! {
- #[repr(C)]
- pub struct git_rebase_operation {
- - pub _type: git_rebase_operation_t,
- + pub type_: git_rebase_operation_t,
- pub id: git_oid,
- pub exec: *const c_char,
- }
- diff --git a/systest/build.rs b/systest/build.rs
- index 67faeb5..3accc2d 100644
- --- a/systest/build.rs
- +++ b/systest/build.rs
- @@ -19,10 +19,14 @@ fn main() {
- .type_name(|s, _, _| s.to_string());
- cfg.field_name(|_, f| {
- match f {
- - "kind" => "type".to_string(),
- + "kind" | "type_" => "type".to_string(),
- _ => f.to_string(),
- }
- });
- + cfg.skip_field(|struct_, f| {
- + // has a `const` qualitifer that `ctest` doesn't like
- + struct_ == "git_rebase_operation" && f == "id"
- + });
- cfg.skip_signededness(|s| {
- match s {
- s if s.ends_with("_cb") => true,
Add Comment
Please, Sign In to add comment