Clippy warnings.

This commit is contained in:
Naja Melan
2023-01-29 18:18:30 +01:00
parent fae6529b51
commit 0ea86990e4
3 changed files with 12 additions and 12 deletions

View File

@@ -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

View File

@@ -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" );
}

View File

@@ -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" );
}