From d0369a79c3bea3373446c8620e41ffd3e24c64be Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 8 Apr 2023 00:42:05 +0000 Subject: fix(router): tokio namespace --- Cargo.toml | 2 +- README.md | 8 ++++---- src/router.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f6e53d0..8d1c4fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ [package] name = "windmark" -version = "0.3.3" +version = "0.3.4" authors = ["Fuwn "] edition = "2021" description = "An elegant and highly performant async Gemini server framework" diff --git a/README.md b/README.md index 25ebd52..3313b8f 100644 --- a/README.md +++ b/README.md @@ -18,18 +18,18 @@ Check out an example starter project # Cargo.toml [dependencies] -windmark = "0.3.3" +windmark = "0.3.4" tokio = { version = "1.26.0", features = ["full"] } # If you would like to use the built-in logger (recommended) -# windmark = { version = "0.3.3", features = ["logger"] } +# windmark = { version = "0.3.4", features = ["logger"] } # If you would like to use the built-in MIME dedection when `Success`-ing a file # (recommended) -# windmark = { version = "0.3.3", features = ["auto-deduce-mime"] } +# windmark = { version = "0.3.4", features = ["auto-deduce-mime"] } # If you would like to use macro-based responses (as seen below) -# windmark = { version = "0.3.3", features = ["response-macros"] } +# windmark = { version = "0.3.4", features = ["response-macros"] } ``` ### Implement a Windmark server diff --git a/src/router.rs b/src/router.rs index 0b550c4..f5f6725 100644 --- a/src/router.rs +++ b/src/router.rs @@ -47,8 +47,8 @@ use crate::{ macro_rules! block { ($body:expr) => { - tokio::task::block_in_place(|| { - tokio::runtime::Handle::current().block_on(async { $body }); + ::tokio::task::block_in_place(|| { + ::tokio::runtime::Handle::current().block_on(async { $body }); }); }; } -- cgit v1.2.3