summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorkat <kat@vector35.com>2024-07-25 21:34:55 -0400
committerkat <kat@vector35.com>2024-07-26 01:36:37 -0400
commit85c04eac52abe3aa0c54cd079bf87e64a60b62bd (patch)
treea19146f692a4ebd206b51a0343d903e48d9c3cc9 /rust
parent326cb30bfa0d8a4bc2e37d56b20b95624e85f3d8 (diff)
Properly check for/log failures and return status on Typelib.write_to_file
Diffstat (limited to 'rust')
-rw-r--r--rust/src/typelibrary.rs2
1 files changed, 1 insertions, 1 deletions
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<S: BnStrCompatible>(&self, path: S) {
+ pub fn write_to_file<S: BnStrCompatible>(&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)