Skip to content

Commit b4eb18b

Browse files
committed
linter fixes
1 parent 9ac556b commit b4eb18b

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

engine/playground-server/src/handlers/websocket_rpc.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
use std::sync::Arc;
2-
31
use axum::{
42
extract::{ws::Message, State, WebSocketUpgrade},
53
response::IntoResponse,
64
};
75
use futures::{SinkExt, StreamExt};
8-
use tokio::sync::RwLock;
96

10-
use base64::{engine::general_purpose, Engine as _};
11-
use mime_guess::from_path;
127
use serde_json::Value;
13-
use webbrowser;
148

159
use crate::{definitions::PreSendToWasmMessage, server::AppState};
1610

@@ -35,7 +29,7 @@ where
3529
if let Ok(json) = serde_json::from_str::<Value>(msg) {
3630
let rpc_id = json["rpcId"].clone();
3731
let rpc_method = json["rpcMethod"].as_str().unwrap_or("");
38-
let data = &json["data"];
32+
let _data = &json["data"];
3933
tracing::info!("Handling RPC request: {:?}", rpc_method);
4034
match rpc_method {
4135
"INITIALIZED" => {

engine/playground-server/src/handlers/websocket_ws.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
use std::sync::Arc;
2-
31
use axum::{
42
extract::{ws::Message, State, WebSocketUpgrade},
53
response::IntoResponse,
64
};
75
use futures::{SinkExt, StreamExt};
8-
use tokio::sync::RwLock;
96

107
use crate::server::AppState;
118

engine/playground-server/src/server.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use axum::{response::Html, routing::get, Router};
1+
use axum::{routing::get, Router};
22
use flate2::read::GzDecoder;
33
use sha2::{Digest, Sha256};
44
use std::io::Cursor;
@@ -85,10 +85,6 @@ where
8585
}
8686
}
8787

88-
async fn handler() -> Html<&'static str> {
89-
Html("<h1>Playground Server</h1><p>Axum HTTP server is running!</p>")
90-
}
91-
9288
async fn health_check() -> &'static str {
9389
"OK"
9490
}

0 commit comments

Comments
 (0)