mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 14:10:20 +00:00
fix clippy
This commit is contained in:
parent
dc5a02c563
commit
e2002d6ea4
1 changed files with 1 additions and 4 deletions
|
@ -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}" }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue