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"];