Skip to content

Commit

Permalink
fix(lint): remove useless any all in cfg.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanaasagi committed May 21, 2023
1 parent 1fa1c14 commit 0e4aec4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aya/src/maps/perf/async_perf_event_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ pub struct AsyncPerfEventArrayBuffer<T> {
async_fd: Async<RawFd>,
}

#[cfg(any(feature = "async_tokio"))]
#[cfg(feature = "async_tokio")]
impl<T: BorrowMut<MapData> + Borrow<MapData>> AsyncPerfEventArrayBuffer<T> {
/// Reads events from the buffer.
///
Expand Down
4 changes: 2 additions & 2 deletions aya/src/maps/perf/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//! Ring buffer types used to receive events from eBPF programs using the linux `perf` API.
//!
//! See the [`PerfEventArray`](crate::maps::PerfEventArray) and [`AsyncPerfEventArray`](crate::maps::perf::AsyncPerfEventArray).
#[cfg(any(feature = "async"))]
#[cfg(feature = "async")]
#[cfg_attr(docsrs, doc(cfg(feature = "async")))]
mod async_perf_event_array;
mod perf_buffer;
mod perf_event_array;

#[cfg(any(feature = "async"))]
#[cfg(feature = "async")]
#[cfg_attr(docsrs, doc(cfg(feature = "async")))]
pub use async_perf_event_array::*;
pub use perf_buffer::*;
Expand Down
2 changes: 1 addition & 1 deletion bpf/aya-bpf-cty/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub use od::*;
// PWD = Pointer Width Dependent
pub use pwd::*;

#[cfg(any(target_arch = "bpf"))]
#[cfg(target_arch = "bpf")]
mod ad {
pub type c_int = i32;
pub type c_uint = u32;
Expand Down

0 comments on commit 0e4aec4

Please sign in to comment.