mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-23 23:51:06 +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
|
||||
* Disallow `*` in `Cors::allowed_origin` by panicking. [#114].
|
||||
* Hide `CorsMiddleware` from rustdocs. [#118].
|
||||
|
||||
[#114]: https://github.com/actix/actix-extras/pull/114
|
||||
[#118]: https://github.com/actix/actix-extras/pull/118
|
||||
|
||||
|
||||
## 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
|
||||
/// be generated.
|
||||
#[doc(hidden)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct CorsMiddleware<S> {
|
||||
pub(crate) service: S,
|
||||
|
Loading…
Reference in New Issue
Block a user