fix(ui): resolve clippy warnings and update dependencies

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-01-25 08:42:35 -03:00
parent 97b96faa89
commit 74a2122827
2 changed files with 2 additions and 23 deletions

View file

@ -53,38 +53,16 @@ tickets = []
[dependencies] [dependencies]
anyhow = { workspace = true } anyhow = { workspace = true }
async-trait = { workspace = true }
axum = { 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 } futures-util = { workspace = true }
hostname = { workspace = true }
jsonwebtoken = { workspace = true }
local-ip-address = { workspace = true }
log = { workspace = true } log = { workspace = true }
mime_guess = { workspace = true }
native-tls = { workspace = true } native-tls = { workspace = true }
rand = { workspace = true }
regex = { workspace = true }
reqwest = { workspace = true, features = ["json"] } reqwest = { workspace = true, features = ["json"] }
serde = { workspace = true, features = ["derive"] } serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true } serde_json = { workspace = true }
time = { workspace = true }
tokio = { workspace = true, features = ["full"] } tokio = { workspace = true, features = ["full"] }
tokio-stream = { workspace = true }
tokio-tungstenite = { workspace = true, features = ["native-tls", "connect"] } tokio-tungstenite = { workspace = true, features = ["native-tls", "connect"] }
tower = { workspace = true }
tower-http = { workspace = true, features = ["cors", "fs", "trace"] } 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] [lints]
workspace = true workspace = true

View file

@ -136,6 +136,7 @@ pub async fn serve_minimal() -> impl IntoResponse {
pub async fn serve_suite() -> impl IntoResponse { pub async fn serve_suite() -> impl IntoResponse {
match fs::read_to_string("ui/suite/index.html") { match fs::read_to_string("ui/suite/index.html") {
Ok(raw_html) => { Ok(raw_html) => {
#[allow(unused_mut)] // Mutable required for feature-gated blocks
let mut html = raw_html; let mut html = raw_html;
// Core Apps // 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 start_marker = format!("<!-- SECTION:{} -->", section);
let end_marker = format!("<!-- ENDSECTION:{} -->", section); let end_marker = format!("<!-- ENDSECTION:{} -->", section);