mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-17 08:33:30 +01:00
cors: hide service struct from docs (#118)
This hides `CorsMiddleware` from rustdocs, following the pattern of the rest of `actix_web::middleware` implementations.
This commit is contained in:
parent
b59e307de1
commit
c8e641d4b6
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
## Unreleased - 2020-xx-xx
|
## Unreleased - 2020-xx-xx
|
||||||
* Disallow `*` in `Cors::allowed_origin` by panicking. [#114].
|
* Disallow `*` in `Cors::allowed_origin` by panicking. [#114].
|
||||||
|
* Hide `CorsMiddleware` from rustdocs. [#118].
|
||||||
|
|
||||||
[#114]: https://github.com/actix/actix-extras/pull/114
|
[#114]: https://github.com/actix/actix-extras/pull/114
|
||||||
|
[#118]: https://github.com/actix/actix-extras/pull/118
|
||||||
|
|
||||||
|
|
||||||
## 0.4.1 - 2020-10-07
|
## 0.4.1 - 2020-10-07
|
||||||
|
@ -21,6 +21,7 @@ use crate::Inner;
|
|||||||
///
|
///
|
||||||
/// This struct contains the settings for CORS requests to be validated and for responses to
|
/// This struct contains the settings for CORS requests to be validated and for responses to
|
||||||
/// be generated.
|
/// be generated.
|
||||||
|
#[doc(hidden)]
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct CorsMiddleware<S> {
|
pub struct CorsMiddleware<S> {
|
||||||
pub(crate) service: S,
|
pub(crate) service: S,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user