From 85c04eac52abe3aa0c54cd079bf87e64a60b62bd Mon Sep 17 00:00:00 2001 From: kat Date: Thu, 25 Jul 2024 21:34:55 -0400 Subject: Properly check for/log failures and return status on Typelib.write_to_file --- rust/src/typelibrary.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src') diff --git a/rust/src/typelibrary.rs b/rust/src/typelibrary.rs index ce0fe6f8..a0992e18 100644 --- a/rust/src/typelibrary.rs +++ b/rust/src/typelibrary.rs @@ -77,7 +77,7 @@ impl TypeLibrary { } /// Saves a finalized type library instance to file - pub fn write_to_file(&self, path: S) { + pub fn write_to_file(&self, path: S) -> bool { let path = path.into_bytes_with_nul(); unsafe { BNWriteTypeLibraryToFile(self.as_raw(), path.as_ref().as_ptr() as *const ffi::c_char) -- cgit v1.3.1