Guest User

Untitled

a guest
Dec 10th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. diff --git a/libgit2-sys/lib.rs b/libgit2-sys/lib.rs
  2. index 48f2511..1fcc156 100644
  3. --- a/libgit2-sys/lib.rs
  4. +++ b/libgit2-sys/lib.rs
  5. @@ -1583,7 +1583,7 @@ git_enum! {
  6.  
  7. #[repr(C)]
  8. pub struct git_rebase_operation {
  9. - pub _type: git_rebase_operation_t,
  10. + pub type_: git_rebase_operation_t,
  11. pub id: git_oid,
  12. pub exec: *const c_char,
  13. }
  14. diff --git a/systest/build.rs b/systest/build.rs
  15. index 67faeb5..152cb77 100644
  16. --- a/systest/build.rs
  17. +++ b/systest/build.rs
  18. @@ -19,7 +19,7 @@ fn main() {
  19. .type_name(|s, _, _| s.to_string());
  20. cfg.field_name(|_, f| {
  21. match f {
  22. - "kind" => "type".to_string(),
  23. + "kind" | "type_" => "type".to_string(),
  24. _ => f.to_string(),
  25. }
  26. });
Add Comment
Please, Sign In to add comment