Skip to content

Commit 04e9e9a

Browse files
committed
Ignore clippy::mixed_attributes_style lint
``` error: item has both inner and outer attributes --> futures/src/lib.rs:148:1 | 148 | / #[cfg(feature = "executor")] 149 | | #[cfg_attr(docsrs, doc(cfg(feature = "executor")))] 150 | | pub mod executor { 151 | | //! Built-in executors and related tools. ... | 187 | | //! [`spawn_obj`]: https://docs.rs/futures/0.3/futures/task/trait.Spawn.html#tymethod.spawn_obj 188 | | //! [`spawn_local_obj`]: https://docs.rs/futures/0.3/futures/task/trait.LocalSpawn.html#tymethod.spawn_local_obj | |____________________________________________________________________________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style = note: `-D clippy::mixed-attributes-style` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::mixed_attributes_style)]` error: item has both inner and outer attributes --> futures/src/lib.rs:200:1 | 200 | / #[cfg(feature = "compat")] 201 | | #[cfg_attr(docsrs, doc(cfg(feature = "compat")))] 202 | | pub mod compat { 203 | | //! Interop between `futures` 0.1 and 0.3. 204 | | //! 205 | | //! This module is only available when the `compat` feature of this 206 | | //! library is activated. | |_____________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mixed_attributes_style ```
1 parent 7172d84 commit 04e9e9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

futures/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ pub use futures_util::lock;
145145
#[doc(inline)]
146146
pub use futures_util::io;
147147

148+
#[allow(clippy::mixed_attributes_style)] // https://github.com/rust-lang/rust-clippy/issues/12435
148149
#[cfg(feature = "executor")]
149150
#[cfg_attr(docsrs, doc(cfg(feature = "executor")))]
150151
pub mod executor {
@@ -197,6 +198,7 @@ pub mod executor {
197198
pub use futures_executor::{ThreadPool, ThreadPoolBuilder};
198199
}
199200

201+
#[allow(clippy::mixed_attributes_style)] // https://github.com/rust-lang/rust-clippy/issues/12435
200202
#[cfg(feature = "compat")]
201203
#[cfg_attr(docsrs, doc(cfg(feature = "compat")))]
202204
pub mod compat {

0 commit comments

Comments
 (0)