aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-31 07:13:32 +0000
committerFuwn <[email protected]>2022-03-31 07:13:32 +0000
commitc76dedb2534cf313398aef2abb38b28444f84474 (patch)
treeb72f769c643ea2758f37a60402b38fdb92b74a5a /src/lib.rs
parentfeat(cargo): bump version (diff)
downloadwindmark-c76dedb2534cf313398aef2abb38b28444f84474.tar.xz
windmark-c76dedb2534cf313398aef2abb38b28444f84474.zip
fix(router): conditional feature args
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2fb7e6d..e5e6977 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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,
);
}