fix: remove unused imports and suppress dead code warning
Some checks failed
Build MIPS Binary / build (push) Failing after 1m11s
Some checks failed
Build MIPS Binary / build (push) Failing after 1m11s
- 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
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
use leptos::prelude::*;
|
use leptos::prelude::*;
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
#[component]
|
#[component]
|
||||||
pub fn Modal(
|
pub fn Modal(
|
||||||
#[prop(into)] title: String,
|
#[prop(into)] title: String,
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
use leptos::prelude::*;
|
use leptos::prelude::*;
|
||||||
use leptos::logging;
|
|
||||||
use leptos::html;
|
|
||||||
use leptos::task::spawn_local;
|
|
||||||
use shared::NotificationLevel;
|
use shared::NotificationLevel;
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use leptos::task::spawn_local;
|
|||||||
use leptos_use::use_timeout_fn;
|
use leptos_use::use_timeout_fn;
|
||||||
use crate::store::{get_action_messages, show_toast_with_signal};
|
use crate::store::{get_action_messages, show_toast_with_signal};
|
||||||
use crate::api;
|
use crate::api;
|
||||||
use shared::{NotificationLevel, Torrent};
|
use shared::NotificationLevel;
|
||||||
|
|
||||||
fn format_bytes(bytes: i64) -> String {
|
fn format_bytes(bytes: i64) -> String {
|
||||||
const UNITS: [&str; 6] = ["B", "KB", "MB", "GB", "TB", "PB"];
|
const UNITS: [&str; 6] = ["B", "KB", "MB", "GB", "TB", "PB"];
|
||||||
|
|||||||
Reference in New Issue
Block a user