diff options
Diffstat (limited to 'rust/src/repository.rs')
| -rw-r--r-- | rust/src/repository.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/rust/src/repository.rs b/rust/src/repository.rs index 8d2fbafe..27825b96 100644 --- a/rust/src/repository.rs +++ b/rust/src/repository.rs @@ -54,12 +54,7 @@ impl Repository { pub fn plugin_by_path<S: AsCStr>(&self, path: S) -> Option<Ref<RepositoryPlugin>> { let path = path.to_cstr(); - let result = unsafe { - BNRepositoryGetPluginByPath( - self.handle.as_ptr(), - path.as_ref().as_ptr() as *const c_char, - ) - }; + let result = unsafe { BNRepositoryGetPluginByPath(self.handle.as_ptr(), path.as_ptr()) }; NonNull::new(result).map(|h| unsafe { RepositoryPlugin::ref_from_raw(h) }) } |
