fix(ui): resolve clippy warnings and update dependencies
This commit is contained in:
parent
97b96faa89
commit
74a2122827
2 changed files with 2 additions and 23 deletions
22
Cargo.toml
22
Cargo.toml
|
|
@ -53,38 +53,16 @@ tickets = []
|
|||
|
||||
[dependencies]
|
||||
anyhow = { workspace = true }
|
||||
async-trait = { workspace = true }
|
||||
axum = { workspace = true }
|
||||
base64 = { workspace = true }
|
||||
bytes = { workspace = true }
|
||||
chrono = { workspace = true, features = ["serde"] }
|
||||
diesel = { workspace = true, features = ["sqlite"] }
|
||||
dirs = { workspace = true }
|
||||
env_logger = { workspace = true }
|
||||
futures = { workspace = true }
|
||||
futures-util = { workspace = true }
|
||||
hostname = { workspace = true }
|
||||
jsonwebtoken = { workspace = true }
|
||||
local-ip-address = { workspace = true }
|
||||
log = { workspace = true }
|
||||
mime_guess = { workspace = true }
|
||||
native-tls = { workspace = true }
|
||||
rand = { workspace = true }
|
||||
regex = { workspace = true }
|
||||
reqwest = { workspace = true, features = ["json"] }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde_json = { workspace = true }
|
||||
time = { workspace = true }
|
||||
tokio = { workspace = true, features = ["full"] }
|
||||
tokio-stream = { workspace = true }
|
||||
tokio-tungstenite = { workspace = true, features = ["native-tls", "connect"] }
|
||||
tower = { workspace = true }
|
||||
tower-http = { workspace = true, features = ["cors", "fs", "trace"] }
|
||||
tower-cookies = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
urlencoding = { workspace = true }
|
||||
uuid = { workspace = true, features = ["serde", "v4"] }
|
||||
webbrowser = { workspace = true }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@ pub async fn serve_minimal() -> impl IntoResponse {
|
|||
pub async fn serve_suite() -> impl IntoResponse {
|
||||
match fs::read_to_string("ui/suite/index.html") {
|
||||
Ok(raw_html) => {
|
||||
#[allow(unused_mut)] // Mutable required for feature-gated blocks
|
||||
let mut html = raw_html;
|
||||
|
||||
// Core Apps
|
||||
|
|
@ -208,7 +209,7 @@ pub async fn serve_suite() -> impl IntoResponse {
|
|||
}
|
||||
}
|
||||
|
||||
fn remove_section(html: &str, section: &str) -> String {
|
||||
pub fn remove_section(html: &str, section: &str) -> String {
|
||||
let start_marker = format!("<!-- SECTION:{} -->", section);
|
||||
let end_marker = format!("<!-- ENDSECTION:{} -->", section);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue