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/websocket/client.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rust/src/websocket') diff --git a/rust/src/websocket/client.rs b/rust/src/websocket/client.rs index e9e753b1..8e2c6db0 100644 --- a/rust/src/websocket/client.rs +++ b/rust/src/websocket/client.rs @@ -124,9 +124,7 @@ impl CoreWebsocketClient { /// Call the error callback function pub fn notify_error(&self, msg: &str) { let error = msg.to_cstr(); - unsafe { - BNNotifyWebsocketClientError(self.handle.as_ptr(), error.as_ptr()) - } + unsafe { BNNotifyWebsocketClientError(self.handle.as_ptr(), error.as_ptr()) } } /// Call the read callback function, forward the callback returned value -- cgit v1.3.1