Skip to content

Commit

Permalink
silence false positive clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
najamelan committed Feb 9, 2025
1 parent a14c11d commit 6462f11
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions tests/events.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(dead_code)]
wasm_bindgen_test_configure!(run_in_browser);

// What's tested:
Expand Down
3 changes: 1 addition & 2 deletions tests/futures_codec.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(dead_code)]
wasm_bindgen_test_configure!(run_in_browser);

// What's tested:
Expand Down Expand Up @@ -83,9 +84,7 @@ async fn echo( name: &str, size: usize, data: Bytes )
info!( " Enter echo: {}", name );

let (_ws , wsio) = connect().await;

let mut framed = Framed::new( wsio, BytesCodec {} );

framed.send( data.clone() ).await.expect_throw( "Failed to write to websocket" );

let mut result: Vec<u8> = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion tests/tokio_codec.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#![ cfg( feature = "tokio_io" ) ]

#![allow(dead_code)]
wasm_bindgen_test_configure!(run_in_browser);


// What's tested:
//
// Tests send to an echo server which just bounces back all data.
Expand Down
2 changes: 1 addition & 1 deletion tests/ws_meta.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(dead_code)]
wasm_bindgen_test_configure!(run_in_browser);


// What's tested:
//
// Tests send to an echo server which just bounces back all data.
Expand Down
2 changes: 1 addition & 1 deletion tests/ws_stream.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(dead_code)]
wasm_bindgen_test_configure!(run_in_browser);



// What's tested:
//
// Tests send to an echo server which just bounces back all data.
Expand Down

0 comments on commit 6462f11

Please sign in to comment.