bindgen strip nix_ prefix
(cherry picked from commit d07ec1990015f5d12b39da40ad0cb1ef0e798642)
This commit is contained in:
parent
1edaffcc09
commit
c2159c8834
6 changed files with 32 additions and 23 deletions
|
|
@ -58,7 +58,7 @@ impl Drop for Value {
|
|||
fn drop(&mut self) {
|
||||
let context = Context::new();
|
||||
unsafe {
|
||||
raw::nix_gc_decref(context.ptr(), self.inner.as_ptr());
|
||||
raw::gc_decref(context.ptr(), self.inner.as_ptr());
|
||||
}
|
||||
// ignore error from context, because drop should not panic
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ impl Drop for Value {
|
|||
impl Clone for Value {
|
||||
fn clone(&self) -> Self {
|
||||
let context = Context::new();
|
||||
unsafe { raw::nix_gc_incref(context.ptr(), self.inner.as_ptr()) };
|
||||
unsafe { raw::gc_incref(context.ptr(), self.inner.as_ptr()) };
|
||||
context.check_err().unwrap();
|
||||
Value { inner: self.inner }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue