diff --git a/lib/binding_rust/lib.rs b/lib/binding_rust/lib.rs index 568bad25..16e3cd4b 100644 --- a/lib/binding_rust/lib.rs +++ b/lib/binding_rust/lib.rs @@ -337,7 +337,7 @@ impl Language { /// Consumes the [Language], returning a raw pointer to the underlying C structure. pub fn into_raw(self) -> *const ffi::TSLanguage { - self.0 + ManuallyDrop::new(self).0 } }