Skip to content

Commit

Permalink
Fix clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed Aug 28, 2022
1 parent a262df3 commit 09d8a43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/yew/src/platform/rt_tokio/local_worker.rs
Expand Up @@ -165,12 +165,10 @@ mod tests {
.expect("failed to send");
});

let result = timeout(Duration::from_secs(5), rx)
timeout(Duration::from_secs(5), rx)
.await
.expect("task timed out")
.expect("failed to receive");

assert!(result);
}

#[test]
Expand Down
4 changes: 1 addition & 3 deletions packages/yew/src/platform/rt_tokio/mod.rs
Expand Up @@ -164,11 +164,9 @@ mod tests {
});
});

let result = timeout(Duration::from_secs(5), rx)
timeout(Duration::from_secs(5), rx)
.await
.expect("task timed out")
.expect("failed to receive");

assert_eq!(result, ());
}
}

0 comments on commit 09d8a43

Please sign in to comment.