Apply clippy fixes
This commit is contained in:
2 files changed
+6
-6
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
//! Tests related to safety of the library.
|
//! Tests related to safety of the library.
|
||||||
|
|
||||||
use std::rc::Rc;
|
|
||||||
|
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
use dioxus::core::Mutation::*;
|
|
||||||
use dioxus::prelude::*;
|
use dioxus::prelude::*;
|
||||||
use std::future::IntoFuture;
|
|
||||||
use std::rc::Rc;
|
|
||||||
use std::time::Duration;
|
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn it_works() {
|
async fn it_works() {
|
||||||
@@ -28,7 +28,7 @@ fn app(cx: Scope) -> Element {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn suspended_child(cx: Scope) -> Element {
|
fn suspended_child(cx: Scope) -> Element {
|
||||||
let mut val = use_state(cx, || 0);
|
let val = use_state(cx, || 0);
|
||||||
|
|
||||||
if **val < 3 {
|
if **val < 3 {
|
||||||
let mut val = val.clone();
|
let mut val = val.clone();
|
||||||
|
|||||||
Reference in new issue
Block a user