From 94b232cf88b85a5c68817524c999c7308875b069 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 4 Mar 2022 17:41:27 +0100 Subject: [PATCH] docs: prevent inline doc spam for reexports. --- embassy-nrf/src/chips/nrf5340_app.rs | 3 +++ embassy-nrf/src/chips/nrf5340_net.rs | 1 + embassy-nrf/src/chips/nrf9160.rs | 3 +++ embassy-stm32/src/can/bxcan.rs | 1 + 4 files changed, 8 insertions(+) diff --git a/embassy-nrf/src/chips/nrf5340_app.rs b/embassy-nrf/src/chips/nrf5340_app.rs index 4fcb742e..ae6887b3 100644 --- a/embassy-nrf/src/chips/nrf5340_app.rs +++ b/embassy-nrf/src/chips/nrf5340_app.rs @@ -4,6 +4,7 @@ pub mod pac { // The nRF5340 has a secure and non-secure (NS) mode. // To avoid cfg spam, we remove _ns or _s suffixes here. + #[doc(no_inline)] pub use nrf5340_app_pac::{ interrupt, Interrupt, @@ -57,6 +58,7 @@ pub mod pac { }; #[cfg(feature = "nrf5340-app-ns")] + #[doc(no_inline)] pub use nrf5340_app_pac::{ CLOCK_NS as CLOCK, COMP_NS as COMP, @@ -127,6 +129,7 @@ pub mod pac { }; #[cfg(feature = "nrf5340-app-s")] + #[doc(no_inline)] pub use nrf5340_app_pac::{ CACHEDATA_S as CACHEDATA, CACHEINFO_S as CACHEINFO, diff --git a/embassy-nrf/src/chips/nrf5340_net.rs b/embassy-nrf/src/chips/nrf5340_net.rs index ea09f8d7..e2ae97a9 100644 --- a/embassy-nrf/src/chips/nrf5340_net.rs +++ b/embassy-nrf/src/chips/nrf5340_net.rs @@ -4,6 +4,7 @@ pub mod pac { // The nRF5340 has a secure and non-secure (NS) mode. // To avoid cfg spam, we remove _ns or _s suffixes here. + #[doc(no_inline)] pub use nrf5340_net_pac::{ interrupt, Interrupt, diff --git a/embassy-nrf/src/chips/nrf9160.rs b/embassy-nrf/src/chips/nrf9160.rs index 51f6cb80..b8caa126 100644 --- a/embassy-nrf/src/chips/nrf9160.rs +++ b/embassy-nrf/src/chips/nrf9160.rs @@ -4,6 +4,7 @@ pub mod pac { // The nRF9160 has a secure and non-secure (NS) mode. // To avoid cfg spam, we remove _ns or _s suffixes here. + #[doc(no_inline)] pub use nrf9160_pac::{ interrupt, Interrupt, @@ -42,6 +43,7 @@ pub mod pac { }; #[cfg(feature = "nrf9160-ns")] + #[doc(no_inline)] pub use nrf9160_pac::{ CLOCK_NS as CLOCK, DPPIC_NS as DPPIC, @@ -96,6 +98,7 @@ pub mod pac { }; #[cfg(feature = "nrf9160-s")] + #[doc(no_inline)] pub use nrf9160_pac::{ CC_HOST_RGF_S as CC_HOST_RGF, CLOCK_S as CLOCK, diff --git a/embassy-stm32/src/can/bxcan.rs b/embassy-stm32/src/can/bxcan.rs index c52d737b..34182206 100644 --- a/embassy-stm32/src/can/bxcan.rs +++ b/embassy-stm32/src/can/bxcan.rs @@ -7,6 +7,7 @@ use embassy_hal_common::unborrow; use crate::gpio::sealed::AFType; use crate::{peripherals, rcc::RccPeripheral}; +#[doc(no_inline)] pub use bxcan::*; pub struct Can<'d, T: Instance + bxcan::Instance> {