diff --git a/Cargo.toml b/Cargo.toml index bd737d6..1cee089 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ version = "0.2.0-alpha.4" authors = ["John-John Tedro "] # Generic associated types were stabilized in 1.65. rust-version = "1.65" -edition = "2018" +edition = "2021" documentation = "https://docs.rs/audio" homepage = "https://github.com/udoprog/audio" repository = "https://github.com/udoprog/audio" diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 8083f3f..ce5a310 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -2,7 +2,7 @@ name = "examples" version = "0.0.0" authors = ["John-John Tedro "] -edition = "2018" +edition.workspace = true publish = false [dependencies] diff --git a/generate/Cargo.toml b/generate/Cargo.toml index 1a3af39..8323afd 100644 --- a/generate/Cargo.toml +++ b/generate/Cargo.toml @@ -2,7 +2,7 @@ name = "generate" version = "0.0.0" authors = ["John-John Tedro "] -edition = "2018" +edition.workspace = true publish = false [dependencies] diff --git a/ste/src/lib.rs b/ste/src/lib.rs index 8c3c34b..b402216 100644 --- a/ste/src/lib.rs +++ b/ste/src/lib.rs @@ -342,6 +342,7 @@ impl Thread { move |tag| { if let Some(task) = task.take() { let _ = panic::catch_unwind(panic::AssertUnwindSafe(|| { + let _ = &storage; let output = with_tag(tag, task); // Safety: we're the only one with access to this pointer, @@ -632,6 +633,7 @@ impl Builder { let handle = thread::Builder::new() .name(String::from("ste-thread")) .spawn(move || { + let _ = &shared2; let RawSend(shared) = shared2; #[cfg(feature = "tokio")] diff --git a/ste/src/wait_future.rs b/ste/src/wait_future.rs index 475b237..75e4251 100644 --- a/ste/src/wait_future.rs +++ b/ste/src/wait_future.rs @@ -72,6 +72,7 @@ where use std::panic; move |tag| { + let _ = (&waker, &future, &complete); unsafe { // Safety: At this point, we know the waker has been // replaced by the polling task and can safely deref it into @@ -82,6 +83,7 @@ where let future = Pin::new_unchecked(future.0.as_mut()); let result = panic::catch_unwind(panic::AssertUnwindSafe(|| { + let _ = &output; if let Poll::Ready(ready) = with_tag(tag, || future.poll(&mut cx)) { *output.0.as_mut() = Some(ready); }