Make clippy happy
This commit is contained in:
8 files changed
+20
-23
No files matched your search
@@ -7,7 +7,7 @@ use dioxus_core::ElementId;
|
||||
#[test]
|
||||
fn empty_fragment_creates_nothing() {
|
||||
fn app(cx: Scope) -> Element {
|
||||
cx.render(rsx!({ () }))
|
||||
cx.render(rsx!({}))
|
||||
}
|
||||
|
||||
let mut vdom = VirtualDom::new(app);
|
||||
|
||||
@@ -15,7 +15,7 @@ fn test_memory_leak() {
|
||||
cx.spawn(async {});
|
||||
|
||||
if val == 2 || val == 4 {
|
||||
return render!({ () });
|
||||
return render!({});
|
||||
}
|
||||
|
||||
let name = cx.use_hook(|| String::from("numbers: "));
|
||||
|
||||
Reference in new issue
Block a user