diff --git a/src/async_runtime.rs b/src/async_runtime.rs
index db87cbe..3ec1a24 100644
--- a/src/async_runtime.rs
+++ b/src/async_runtime.rs
@@ -83,7 +83,7 @@ pub fn block_on<F: Future>(f: F) -> F::Output {
 ///
 /// [`JoinHandle`]: tokio::task::JoinHandle
 pub fn spawn<T: std::future::Future + 'static>(task: T) -> tokio::task::JoinHandle<T::Output> {
-    CURRENT_RUNTIME.with(|rt| match f {
+    CURRENT_RUNTIME.with(|rt| match rt {
         Runtime::Tokio(_) => tokio::task::spawn_local(task),
         #[cfg(target_os = "linux")]
         Runtime::Uring(_) => tokio_uring::spawn(task),
