From f32f083c81a5034530ac33ad2bc460dd234186a5 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 4 May 2025 20:43:32 -0400 Subject: [Rust] More cleanup regarding `BnString` - Removed `to_string` shortcut from `BnString`. - Misc formatting --- rust/src/update.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rust/src/update.rs') 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 { -- cgit v1.3.1