chore: silence unused code warnings in frontend UI components

This commit is contained in:
spinline
2026-02-11 23:29:40 +03:00
parent 315a2f9a53
commit c135c96d27
2 changed files with 7 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ use tw_merge::tw_merge;
#[derive(Default, Clone, Copy, PartialEq, Eq, AsRefStr)] #[derive(Default, Clone, Copy, PartialEq, Eq, AsRefStr)]
#[strum(serialize_all = "lowercase")] #[strum(serialize_all = "lowercase")]
#[allow(dead_code)]
pub enum InputType { pub enum InputType {
#[default] #[default]
Text, Text,

View File

@@ -2,6 +2,7 @@ use leptos::prelude::*;
use tw_merge::*; use tw_merge::*;
#[derive(Clone, Copy, PartialEq, Eq, Default, strum::Display, Debug)] #[derive(Clone, Copy, PartialEq, Eq, Default, strum::Display, Debug)]
#[allow(dead_code)]
pub enum ToastType { pub enum ToastType {
#[default] #[default]
Default, Default,
@@ -13,6 +14,7 @@ pub enum ToastType {
} }
#[derive(Clone, Copy, PartialEq, Eq, Default, strum::Display, Debug)] #[derive(Clone, Copy, PartialEq, Eq, Default, strum::Display, Debug)]
#[allow(dead_code)]
pub enum SonnerPosition { pub enum SonnerPosition {
TopLeft, TopLeft,
TopCenter, TopCenter,
@@ -226,7 +228,11 @@ pub fn toast(title: impl Into<String>, variant: ToastType) {
} }
} }
#[allow(dead_code)]
pub fn toast_success(title: impl Into<String>) { toast(title, ToastType::Success); } pub fn toast_success(title: impl Into<String>) { toast(title, ToastType::Success); }
#[allow(dead_code)]
pub fn toast_error(title: impl Into<String>) { toast(title, ToastType::Error); } pub fn toast_error(title: impl Into<String>) { toast(title, ToastType::Error); }
#[allow(dead_code)]
pub fn toast_warning(title: impl Into<String>) { toast(title, ToastType::Warning); } pub fn toast_warning(title: impl Into<String>) { toast(title, ToastType::Warning); }
#[allow(dead_code)]
pub fn toast_info(title: impl Into<String>) { toast(title, ToastType::Info); } pub fn toast_info(title: impl Into<String>) { toast(title, ToastType::Info); }