summaryrefslogtreecommitdiff
path: root/rust/tests/websocket.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-05-05 13:17:30 -0400
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-05-12 17:45:24 -0400
commit9dadf92c16da5cd21def79ae39ca98803c9208ec (patch)
tree3874a659bcb3818f43c1a46ab3ef081b99b47154 /rust/tests/websocket.rs
parent9f5491a56f6af1fa9b030f23d40150673a52aaa1 (diff)
[Rust] Rename `AsCStr` to `IntoCStr`
Diffstat (limited to 'rust/tests/websocket.rs')
-rw-r--r--rust/tests/websocket.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/tests/websocket.rs b/rust/tests/websocket.rs
index 01d2d791..c5cf6be4 100644
--- a/rust/tests/websocket.rs
+++ b/rust/tests/websocket.rs
@@ -1,6 +1,6 @@
use binaryninja::headless::Session;
use binaryninja::rc::Ref;
-use binaryninja::string::AsCStr;
+use binaryninja::string::IntoCStr;
use binaryninja::websocket::{
register_websocket_provider, CoreWebsocketClient, CoreWebsocketProvider, WebsocketClient,
WebsocketClientCallback, WebsocketProvider,
@@ -34,8 +34,8 @@ impl WebsocketClient for MyWebsocketClient {
fn connect<I, K, V>(&self, host: &str, _headers: I) -> bool
where
I: IntoIterator<Item = (K, V)>,
- K: AsCStr,
- V: AsCStr,
+ K: IntoCStr,
+ V: IntoCStr,
{
assert_eq!(host, "url");
true