Skip to content

Commit 6787a66

Browse files
committed
fix formatting + clippy
1 parent 80c1a3d commit 6787a66

4 files changed

Lines changed: 2 additions & 12 deletions

File tree

demo/src/components/badge/component.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use dioxus::prelude::*;
22

33
#[derive(Copy, Clone, PartialEq, Default)]
44
#[non_exhaustive]
5+
#[allow(dead_code)]
56
pub enum BadgeVariant {
67
#[default]
78
Primary,

demo/src/components/tabs/component.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pub struct TabsProps {
4545

4646
/// The variant of the tabs component.
4747
#[derive(Clone, Copy, PartialEq, Default)]
48+
#[allow(dead_code)]
4849
pub enum TabsVariant {
4950
/// The default variant.
5051
#[default]
@@ -53,16 +54,6 @@ pub enum TabsVariant {
5354
Ghost,
5455
}
5556

56-
impl TabsVariant {
57-
/// Convert the variant to a string for use in class names
58-
fn to_class(self) -> &'static str {
59-
match self {
60-
TabsVariant::Default => "default",
61-
TabsVariant::Ghost => "ghost",
62-
}
63-
}
64-
}
65-
6657
#[component]
6758
pub fn Tabs(props: TabsProps) -> Element {
6859
rsx! {

demo/src/components/tabs/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
mod component;
2-
pub use component::*;

demo/src/components/tooltip/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
mod component;
2-
pub use component::*;

0 commit comments

Comments
 (0)