summaryrefslogtreecommitdiff
path: root/rust/src/platform.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/platform.rs')
-rw-r--r--rust/src/platform.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/platform.rs b/rust/src/platform.rs
index 72f61430..6d2b30f0 100644
--- a/rust/src/platform.rs
+++ b/rust/src/platform.rs
@@ -160,10 +160,10 @@ impl Platform {
}
}
- pub fn name(&self) -> BnString {
+ pub fn name(&self) -> String {
unsafe {
let raw_name = BNGetPlatformName(self.handle);
- BnString::from_raw(raw_name)
+ BnString::into_string(raw_name)
}
}
@@ -301,7 +301,7 @@ impl Platform {
assert!(!error_string.is_null());
Err(TypeParserError::new(
TypeParserErrorSeverity::FatalSeverity,
- unsafe { BnString::from_raw(error_string) }.to_string(),
+ unsafe { BnString::into_string(error_string) },
file_name.to_string(),
0,
0,