Fix cargo test and a number of little cleanup bugs

This commit is contained in:
Jonathan Kelley committed 2024-01-30 17:33:14 -08:00
1 parent eff1dd6c90
commit 0bd9692e45
49 files changed
+307 -309

No files matched your search

+2 -2
View File
@@ -60,7 +60,7 @@ async fn yield_now_works() {
// these two tasks should yield to eachother
use_hook(|| {
spawn(async move {
for x in 0..10 {
for _ in 0..10 {
tokio::task::yield_now().await;
SEQUENCE.with(|s| s.borrow_mut().push(1));
}
@@ -69,7 +69,7 @@ async fn yield_now_works() {
use_hook(|| {
spawn(async move {
for x in 0..10 {
for _ in 0..10 {
tokio::task::yield_now().await;
SEQUENCE.with(|s| s.borrow_mut().push(2));
}