Apply clippy fixes

This commit is contained in:
Jonathan Kelley committed 2023-07-14 17:13:49 -07:00
1 parent f0128a3150
commit 0f5605b3db
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
//! Tests related to safety of the library.
use std::rc::Rc;
use dioxus::prelude::*;
+5 -5
View File
@@ -1,8 +1,8 @@
use dioxus::core::Mutation::*;
use dioxus::prelude::*;
use std::future::IntoFuture;
use std::rc::Rc;
use std::time::Duration;
#[tokio::test]
async fn it_works() {
@@ -28,7 +28,7 @@ fn app(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 {
let mut val = val.clone();