chore: remove all warnings

This commit is contained in:
Jonathan Kelley committed 2022-02-10 21:00:15 -05:00
1 parent cea2e494e9
commit 4a3680ee1b
15 files changed
+17 -226

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
#![allow(unused, non_upper_case_globals)]
#![allow(non_snake_case)]
//! Tests for the lifecycle of components.
use dioxus::prelude::*;
+6 -16
View File
@@ -1,3 +1,4 @@
#![allow(non_snake_case)]
/*
Stress Miri as much as possible.
@@ -311,22 +312,11 @@ fn leak_thru_children() {
#[test]
fn test_pass_thru() {
#[inline_props]
fn Router<'a>(cx: Scope, children: Element<'a>) -> Element {
cx.render(rsx! {
div {
&cx.props.children
}
})
}
#[inline_props]
fn NavContainer<'a>(cx: Scope, children: Element<'a>) -> Element {
cx.render(rsx! {
header {
nav {
&cx.props.children
}
nav { children }
}
})
}
@@ -365,9 +355,9 @@ fn test_pass_thru() {
class: "columns is-mobile",
div {
class: "column is-full",
&cx.props.nav,
&cx.props.body,
&cx.props.footer,
nav,
body,
footer,
}
}
})
@@ -398,7 +388,7 @@ fn test_pass_thru() {
let mut dom = new_dom(app, ());
let _ = dom.rebuild();
for x in 0..40 {
for _ in 0..40 {
dom.handle_message(SchedulerMsg::Immediate(ScopeId(0)));
dom.work_with_deadline(|| false);
dom.handle_message(SchedulerMsg::Immediate(ScopeId(0)));
+2 -3
View File
@@ -1,4 +1,5 @@
#![allow(unused, non_upper_case_globals)]
#![allow(non_snake_case)]
//! Diffing Tests
//!
@@ -40,9 +41,7 @@ fn nested_passthru_creates() {
#[inline_props]
fn Child<'a>(cx: Scope, children: Element<'a>) -> Element {
cx.render(rsx! {
children
})
cx.render(rsx! { children })
};
let mut dom = VirtualDom::new(app);
+1 -1
View File
@@ -1,4 +1,4 @@
#![allow(unused, non_upper_case_globals)]
#![allow(unused, non_upper_case_globals, non_snake_case)]
use dioxus::{prelude::*, DomEdit, Mutations, SchedulerMsg, ScopeId};
use dioxus_core as dioxus;