From 41bd4fcd1ba4bdf4856a6ae474cc0d6ac56dada4 Mon Sep 17 00:00:00 2001 From: spinline Date: Mon, 9 Feb 2026 21:30:03 +0300 Subject: [PATCH] fix: remove unused imports and suppress dead code warning - Remove unused leptos::logging, leptos::html, leptos::task::spawn_local from toast.rs - Remove unused Torrent import from table.rs - Add #[allow(dead_code)] to modal.rs for unused fields --- frontend/src/components/modal.rs | 1 + frontend/src/components/toast.rs | 3 --- frontend/src/components/torrent/table.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/modal.rs b/frontend/src/components/modal.rs index 4200480..e7ba04d 100644 --- a/frontend/src/components/modal.rs +++ b/frontend/src/components/modal.rs @@ -1,5 +1,6 @@ use leptos::prelude::*; +#[allow(dead_code)] #[component] pub fn Modal( #[prop(into)] title: String, diff --git a/frontend/src/components/toast.rs b/frontend/src/components/toast.rs index 16e114b..25390fa 100644 --- a/frontend/src/components/toast.rs +++ b/frontend/src/components/toast.rs @@ -1,7 +1,4 @@ use leptos::prelude::*; -use leptos::logging; -use leptos::html; -use leptos::task::spawn_local; use shared::NotificationLevel; // ============================================================================ diff --git a/frontend/src/components/torrent/table.rs b/frontend/src/components/torrent/table.rs index bac5e61..be3917b 100644 --- a/frontend/src/components/torrent/table.rs +++ b/frontend/src/components/torrent/table.rs @@ -4,7 +4,7 @@ use leptos::task::spawn_local; use leptos_use::use_timeout_fn; use crate::store::{get_action_messages, show_toast_with_signal}; use crate::api; -use shared::{NotificationLevel, Torrent}; +use shared::NotificationLevel; fn format_bytes(bytes: i64) -> String { const UNITS: [&str; 6] = ["B", "KB", "MB", "GB", "TB", "PB"];