mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-31 08:57:00 +02:00
Don't leak internal macros (#2290)
This commit is contained in:
@@ -49,9 +49,9 @@ use crate::http::header;
|
||||
#[derive(PartialEq, Clone, Debug)]
|
||||
pub struct CacheControl(pub Vec<CacheDirective>);
|
||||
|
||||
crate::__common_header_deref!(CacheControl => Vec<CacheDirective>);
|
||||
crate::http::header::common_header_deref!(CacheControl => Vec<CacheDirective>);
|
||||
|
||||
// TODO: this could just be the __define_common_header! macro
|
||||
// TODO: this could just be the crate::http::header::common_header! macro
|
||||
impl Header for CacheControl {
|
||||
fn name() -> header::HeaderName {
|
||||
header::CACHE_CONTROL
|
||||
|
Reference in New Issue
Block a user