summaryrefslogtreecommitdiff
path: root/rust/src/update.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/update.rs')
-rw-r--r--rust/src/update.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/update.rs b/rust/src/update.rs
index 9afb1218..aa8c7daf 100644
--- a/rust/src/update.rs
+++ b/rust/src/update.rs
@@ -75,9 +75,9 @@ impl UpdateChannel {
}
pub(crate) fn free_raw(value: BNUpdateChannel) {
- let _ = unsafe { BnString::from_raw(value.name) };
- let _ = unsafe { BnString::from_raw(value.description) };
- let _ = unsafe { BnString::from_raw(value.latestVersion) };
+ unsafe { BnString::free_raw(value.name) };
+ unsafe { BnString::free_raw(value.description) };
+ unsafe { BnString::free_raw(value.latestVersion) };
}
pub fn all() -> Result<Array<UpdateChannel>, BnString> {