Skip to content

Commit 9ff1bf3

Browse files
committed
aya: fix docs build
Appease the new lint rustdoc::redundant_explicit_links that was added in rust-lang/rust#113167.
1 parent 47a09a4 commit 9ff1bf3

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

aya/src/maps/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
//! [`Bpf::load_file`](crate::Bpf::load_file) or
66
//! [`Bpf::load`](crate::Bpf::load), all the maps defined in the eBPF code get
77
//! initialized and can then be accessed using [`Bpf::map`](crate::Bpf::map),
8-
//! [`Bpf::map_mut`](crate::Bpf::map_mut), or [`Bpf::take_map`](crate::Bpf::take_map).
8+
//! [`Bpf::map_mut`](crate::Bpf::map_mut), or
9+
//! [`Bpf::take_map`](crate::Bpf::take_map).
910
//!
1011
//! # Typed maps
1112
//!
1213
//! The eBPF API includes many map types each supporting different operations.
1314
//! [`Bpf::map`](crate::Bpf::map), [`Bpf::map_mut`](crate::Bpf::map_mut), and
14-
//! [`Bpf::take_map`](crate::Bpf::take_map) always return the
15-
//! opaque [`&Map`](crate::maps::Map), [`&mut Map`](crate::maps::Map), and [`Map`](crate::maps::Map)
15+
//! [`Bpf::take_map`](crate::Bpf::take_map) always return the opaque
16+
//! [`&Map`](crate::maps::Map), [`&mut Map`](crate::maps::Map), and [`Map`]
1617
//! types respectively. Those three types can be converted to *typed maps* using
17-
//! the [`TryFrom`](std::convert::TryFrom) or [`TryInto`](std::convert::TryInto)
18-
//! trait. For example:
18+
//! the [`TryFrom`] or [`TryInto`] trait. For example:
1919
//!
2020
//! ```no_run
2121
//! # let mut bpf = aya::Bpf::load(&[])?;

aya/src/maps/perf/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
//! Ring buffer types used to receive events from eBPF programs using the linux `perf` API.
1+
//! Ring buffer types used to receive events from eBPF programs using the linux
2+
//! `perf` API.
23
//!
3-
//! See the [`PerfEventArray`](crate::maps::PerfEventArray) and [`AsyncPerfEventArray`](crate::maps::perf::AsyncPerfEventArray).
4+
//! See [`PerfEventArray`] and [`AsyncPerfEventArray`].
45
#[cfg(any(feature = "async_tokio", feature = "async_std"))]
56
#[cfg_attr(docsrs, doc(cfg(any(feature = "async_tokio", feature = "async_std"))))]
67
mod async_perf_event_array;

0 commit comments

Comments
 (0)