mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-22 12:13:04 +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]
|
||||
fn Label<T: Clone + PartialEq + 'static>(text: T) -> Element
|
||||
where
|
||||
T: Display,
|
||||
{
|
||||
fn Label<T: Clone + PartialEq + Display + 'static>(text: T) -> Element {
|
||||
rsx! {
|
||||
p { "{text}" }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue