mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
enable doc test for default features
This commit is contained in:
parent
4ff5a8d7e4
commit
20818b0f95
3 changed files with 4 additions and 3 deletions
|
@ -22,9 +22,9 @@ client is authenticated. Otherwise, an empty _403 Forbidden_ response will be is
|
|||
look something like this (assuming the `auth` feature is enabled):
|
||||
|
||||
```rust
|
||||
# #[macro_use] extern crate gotham_restful_derive;
|
||||
# #[cfg(feature = "auth")]
|
||||
# mod auth_feature_enabled {
|
||||
# #[macro_use] extern crate gotham_restful_derive;
|
||||
# use gotham::state::State;
|
||||
# use gotham_restful::*;
|
||||
# use serde::Deserialize;
|
||||
|
@ -82,9 +82,9 @@ client is authenticated. Otherwise, an empty _403 Forbidden_ response will be is
|
|||
look something like this (assuming the `auth` feature is enabled):
|
||||
|
||||
```
|
||||
# #[macro_use] extern crate gotham_restful_derive;
|
||||
# #[cfg(feature = "auth")]
|
||||
# mod auth_feature_enabled {
|
||||
# #[macro_use] extern crate gotham_restful_derive;
|
||||
# use gotham::state::State;
|
||||
# use gotham_restful::*;
|
||||
# use serde::Deserialize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue