diff options
| author | Fuwn <[email protected]> | 2022-03-31 07:13:32 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-31 07:13:32 +0000 |
| commit | d5bbbf89facaa368a2641461bfdb96666863c665 (patch) | |
| tree | b72f769c643ea2758f37a60402b38fdb92b74a5a /src/lib.rs | |
| parent | feat(cargo): bump version (diff) | |
| download | windmark-0.1.7.tar.xz windmark-0.1.7.zip | |
fix(router): conditional feature args0.1.7
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -32,11 +32,11 @@ //! # Cargo.toml //! //! [dependencies] -//! windmark = "0.1.6" +//! windmark = "0.1.7" //! tokio = { version = "0.2.4", features = ["full"] } //! //! # If you would like to use the built-in logger (recommended) -//! # windmark = { version = "0.1.6", features = ["logger"] } +//! # windmark = { version = "0.1.7", features = ["logger"] } //! ``` //! //! ### Implement a Windmark server @@ -370,6 +370,7 @@ impl Router { &route.params, ),)), &mut response_status, + #[cfg(not(feature = "auto-deduce-mime"))] &mut response_mime_type, ) }; @@ -380,6 +381,7 @@ impl Router { .unwrap() .call_mut((ErrorContext::new(stream.get_ref(), &url),)), &mut response_status, + #[cfg(not(feature = "auto-deduce-mime"))] &mut response_mime_type, ); } |