mirror of
https://github.com/tlsnotary/ws_stream_wasm.git
synced 2026-01-09 21:17:56 -05:00
Clippy warnings.
This commit is contained in:
@@ -92,10 +92,10 @@ impl WsMeta
|
||||
// Create our pharos.
|
||||
//
|
||||
let mut pharos = SharedPharos::default();
|
||||
let ph1 = pharos.clone();
|
||||
let ph2 = pharos.clone();
|
||||
let ph3 = pharos.clone();
|
||||
let ph4 = pharos.clone();
|
||||
let ph1 = pharos.clone();
|
||||
let ph2 = pharos.clone();
|
||||
let ph3 = pharos.clone();
|
||||
let ph4 = pharos.clone();
|
||||
|
||||
|
||||
// Setup our event listeners
|
||||
|
||||
@@ -377,7 +377,7 @@ async fn debug()
|
||||
|
||||
let (ws, _wsio) = WsMeta::connect( URL, None ).await.expect_throw( "Could not create websocket" );
|
||||
|
||||
assert_eq!( format!( "WsMeta for connection: {}", URL ), format!( "{:?}", ws ) );
|
||||
assert_eq!( format!( "WsMeta for connection: {URL}" ), format!( "{ws:?}" ) );
|
||||
|
||||
ws.close().await.expect_throw( "close" );
|
||||
}
|
||||
|
||||
@@ -16,14 +16,14 @@ wasm_bindgen_test_configure!(run_in_browser);
|
||||
//
|
||||
use
|
||||
{
|
||||
futures::prelude :: * ,
|
||||
log :: * ,
|
||||
pharos :: * ,
|
||||
futures::prelude :: * ,
|
||||
log :: * ,
|
||||
pharos :: * ,
|
||||
std::marker :: PhantomData ,
|
||||
wasm_bindgen::prelude :: * ,
|
||||
wasm_bindgen::prelude :: * ,
|
||||
wasm_bindgen_futures :: spawn_local ,
|
||||
wasm_bindgen_test :: * ,
|
||||
ws_stream_wasm :: * ,
|
||||
wasm_bindgen_test :: * ,
|
||||
ws_stream_wasm :: * ,
|
||||
};
|
||||
|
||||
|
||||
@@ -236,7 +236,7 @@ async fn debug()
|
||||
|
||||
let (_ws, mut wsio) = WsMeta::connect( URL, None ).await.expect_throw( "Could not create websocket" );
|
||||
|
||||
assert_eq!( format!( "WsStream for connection: {}", URL ), format!( "{:?}", wsio ) );
|
||||
assert_eq!( format!( "WsStream for connection: {URL}" ), format!( "{wsio:?}" ) );
|
||||
|
||||
wsio.close().await.expect_throw( "close" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user