mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
migrate to doc_auto_cfg
This commit is contained in:
@ -431,7 +431,6 @@ impl Cors {
|
||||
///
|
||||
/// [Private Network Access]: https://wicg.github.io/local-network-access
|
||||
#[cfg(feature = "draft-local-network-access")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "draft-local-network-access")))]
|
||||
pub fn allow_local_network_access(mut self) -> Cors {
|
||||
if let Some(cors) = cors(&mut self.inner, &self.error) {
|
||||
cors.allow_local_network_access = true;
|
||||
|
@ -53,7 +53,7 @@
|
||||
#![warn(future_incompatible, missing_docs, missing_debug_implementations)]
|
||||
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
|
||||
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||
|
||||
mod all_or_some;
|
||||
mod builder;
|
||||
|
Reference in New Issue
Block a user