diff options
Diffstat (limited to 'rust/src/websocket')
| -rw-r--r-- | rust/src/websocket/provider.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/websocket/provider.rs b/rust/src/websocket/provider.rs index 0e28afe4..2d01fbc3 100644 --- a/rust/src/websocket/provider.rs +++ b/rust/src/websocket/provider.rs @@ -87,10 +87,10 @@ impl CoreWebsocketProvider { NonNull::new(result).map(|h| unsafe { Self::from_raw(h) }) } - pub fn name(&self) -> BnString { + pub fn name(&self) -> String { let result = unsafe { BNGetWebsocketProviderName(self.handle.as_ptr()) }; assert!(!result.is_null()); - unsafe { BnString::from_raw(result) } + unsafe { BnString::into_string(result) } } } |
