clear all compiler warnings

Remove unused imports (nav, sidebar, state, mock, inventory, item,
numput), the unused qty closure, the unused #![feature] gate, and a
module-scoped allow(dead_code) for the unmounted search stubs.
This commit is contained in:
yaroslav k 2026-08-15 14:56:57 +03:00
parent 444f046990
commit 6a07bd668d
10 changed files with 10 additions and 11 deletions

View File

@ -1,4 +1,4 @@
use leptos::{logging, prelude::*};
use leptos::prelude::*;
use reactive_stores::Field;
use crate::{ components::{ item::Item as ItemRow, numput::Numput }, prelude::* };

View File

@ -1,7 +1,7 @@
use crate::{prelude::*, utils::BasisPoints};
use leptos::prelude::*;
use reactive_stores::{Field, OptionStoreExt};
use reactive_stores::Field;
/// One inventory row: name, quantity stepper + `Numput`, weight stepper +
/// `Numput`, and more/swap/remove buttons. A weight-based tag drives the
@ -14,7 +14,6 @@ pub fn Item (
mut rm: impl FnMut(usize) + 'static,
) -> impl IntoView {
let qty = move || entry.quantity();
let item = move || entry.item();
let empty = String::new();

View File

@ -4,6 +4,11 @@
//! and `numput` implement the inventories page; the page components
//! (`Character`, `Inventories`, `Wiki`) and the item search live in this
//! module root.
#![allow(dead_code)]
// `ItemSearchField` and `ItemSearchCard` are stubs, not mounted on any page
// yet. rustc flags the macro-generated props field as unread. Remove this
// when ROADMAP phase 3 mounts the search.
use leptos::prelude::*;
use nucleo_matcher::{ pattern::{ CaseMatching, Pattern, Normalization }, Config, Matcher };
use reactive_stores::Field;

View File

@ -1,4 +1,3 @@
use crate::prelude::*;
use leptos::prelude::*;
use leptos_router::components::A;

View File

@ -1,6 +1,6 @@
use std::{ fmt::Debug, str::FromStr, ops::{ Sub, Add }};
use std::{ fmt::Debug, str::FromStr };
use leptos::{ logging, prelude::*, tachys::html::property::IntoProperty };
use leptos::{ prelude::*, tachys::html::property::IntoProperty };
use num_format::{Locale, ToFormattedString};
use num_traits::{ SaturatingSub, SaturatingAdd };
use crate::prelude::*;

View File

@ -1,6 +1,5 @@
//! Character sidebar: portrait, names, class/level/XP, HP, hit dice,
//! death saves and spell slots.
use crate::prelude::*;
use leptos::prelude::*;
mod image;

View File

@ -45,7 +45,7 @@ pub fn HitDice () -> impl IntoView {
</select>
</div>
<For
each=move || (0..level.get())
each=move || 0..level.get()
key=|slot| slot.clone()
let (slot)
>

View File

@ -188,7 +188,6 @@ fn generate_mock_contact_book () -> ContactBook {
/// Demo prepared spells. Currently an empty list — `Spell` is a stub.
fn generate_prepared_spells_list () -> PreparedSpells {
use PreparedSpell::*;
let list = vec![
];

View File

@ -3,7 +3,6 @@
//! Leptos 0.8 app with actix-web SSR and client-side hydration. The crate
//! root declares the modules and the WASM entry point; `main.rs` holds the
//! SSR server, `app.rs` the component tree.
#![feature(type_alias_impl_trait)]
pub mod app;
#[allow(unused_imports)]

View File

@ -3,4 +3,3 @@
//! The whole dashboard lives in one `reactive_stores::Store<Dashboard>`
//! (alias `Context`), created in `App` and shared through Leptos context.
use crate::prelude::*;