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.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/rust/src/update.rs b/rust/src/update.rs
index b3c45d84..be85c93e 100644
--- a/rust/src/update.rs
+++ b/rust/src/update.rs
@@ -97,9 +97,7 @@ impl UpdateChannel {
let mut count = 0;
let mut errors = std::ptr::null_mut();
let name = self.name.clone().to_cstr();
- let result = unsafe {
- BNGetUpdateChannelVersions(name.as_ptr(), &mut count, &mut errors)
- };
+ let result = unsafe { BNGetUpdateChannelVersions(name.as_ptr(), &mut count, &mut errors) };
if !errors.is_null() {
Err(unsafe { BnString::from_raw(errors) })
} else {