fix clippy

This commit is contained in:
Evan Almloff 2024-05-20 13:01:04 -05:00
parent dc5a02c563
commit e2002d6ea4

View file

@ -294,10 +294,7 @@ fn WithInline(text: String) -> Element {
} }
#[component] #[component]
fn Label<T: Clone + PartialEq + 'static>(text: T) -> Element fn Label<T: Clone + PartialEq + Display + 'static>(text: T) -> Element {
where
T: Display,
{
rsx! { rsx! {
p { "{text}" } p { "{text}" }
} }