diff options
| author | Mason Reed <mason@vector35.com> | 2025-02-07 02:18:26 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-02-07 02:18:26 -0500 |
| commit | 3f0a217d7d097c0502af81e78a01ed3bf9f38761 (patch) | |
| tree | 87a61045626fcf4c6bad0db8777bf1df74cea8d1 /rust/src/repository/plugin.rs | |
| parent | 14f0481066ade931baf9791626b2cda165c0f4f2 (diff) | |
Fix incorrect casts in Rust RepositoryPlugin
Was causing linux arm builds to fail
Diffstat (limited to 'rust/src/repository/plugin.rs')
| -rw-r--r-- | rust/src/repository/plugin.rs | 12 |
1 files changed, 6 insertions, 6 deletions
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 |
