fix some clippy lints

This commit is contained in:
Evan Almloff committed 2023-09-27 10:13:45 -05:00
1 parent 76a050314a
commit ee25c03e74
9 files changed
+25 -14

No files matched your search

-1
View File
@@ -139,7 +139,6 @@ Missing Features
Missing examples
- Shared state
- Root-less element groups
- Spread props
- Custom elements
- Component Children: Pass children into child components
- Render To string: Render a mounted virtualdom to a string
+1 -2
View File
@@ -21,10 +21,9 @@ fn app(cx: Scope) -> Element {
}
fn Component<'a>(cx: Scope<'a, Props<'a>>) -> Element<'a> {
let attributes = &*cx.props.attributes;
render! {
audio {
..attributes,
..cx.props.attributes,
"1: {cx.props.extra_data}\n2: {cx.props.extra_data2}"
}
}