From 3f0a217d7d097c0502af81e78a01ed3bf9f38761 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 7 Feb 2025 02:18:26 -0500 Subject: Fix incorrect casts in Rust RepositoryPlugin Was causing linux arm builds to fail --- rust/src/repository/plugin.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'rust/src') diff --git a/rust/src/repository/plugin.rs b/rust/src/repository/plugin.rs index 7a3d99b0..af3886f2 100644 --- a/rust/src/repository/plugin.rs +++ b/rust/src/repository/plugin.rs @@ -101,35 +101,35 @@ impl RepositoryPlugin { pub fn version(&self) -> BnString { let result = unsafe { BNPluginGetVersion(self.handle.as_ptr()) }; assert!(!result.is_null()); - unsafe { BnString::from_raw(result as *mut i8) } + unsafe { BnString::from_raw(result as *mut c_char) } } /// String of the commit of this plugin git repository pub fn commit(&self) -> BnString { let result = unsafe { BNPluginGetCommit(self.handle.as_ptr()) }; assert!(!result.is_null()); - unsafe { BnString::from_raw(result as *mut i8) } + unsafe { BnString::from_raw(result as *mut c_char) } } /// Relative path from the base of the repository to the actual plugin pub fn path(&self) -> BnString { let result = unsafe { BNPluginGetPath(self.handle.as_ptr()) }; assert!(!result.is_null()); - unsafe { BnString::from_raw(result as *mut i8) } + unsafe { BnString::from_raw(result as *mut c_char) } } /// Optional sub-directory the plugin code lives in as a relative path from the plugin root pub fn subdir(&self) -> BnString { let result = unsafe { BNPluginGetSubdir(self.handle.as_ptr()) }; assert!(!result.is_null()); - unsafe { BnString::from_raw(result as *mut i8) } + unsafe { BnString::from_raw(result as *mut c_char) } } /// Dependencies required for installing this plugin pub fn dependencies(&self) -> BnString { let result = unsafe { BNPluginGetDependencies(self.handle.as_ptr()) }; assert!(!result.is_null()); - unsafe { BnString::from_raw(result as *mut i8) } + unsafe { BnString::from_raw(result as *mut c_char) } } /// true if the plugin is installed, false otherwise @@ -193,7 +193,7 @@ impl RepositoryPlugin { pub fn repository(&self) -> BnString { let result = unsafe { BNPluginGetRepository(self.handle.as_ptr()) }; assert!(!result.is_null()); - unsafe { BnString::from_raw(result as *mut i8) } + unsafe { BnString::from_raw(result as *mut c_char) } } /// Boolean status indicating that the plugin is being deleted -- cgit v1.3.1