fix clippy
This commit is contained in:
1 parent
dc5a02c563
commit
e2002d6ea4
1 file changed
+1
-4
@@ -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}" }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user