1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 10:27:42 +02: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:
Luca Bruno
2020-10-16 22:01:30 +00:00
committed by GitHub
parent b59e307de1
commit c8e641d4b6
2 changed files with 3 additions and 0 deletions

View File

@ -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,