Skip to content

Commit dc55bd4

Browse files
committed
doc(core): remove ineffective anchors in intra-doc links
warning: `crate::kernel::Kernel::exit_task#safety` contains an anchor, but links to associated functions are already anchored --> src/r3_core/src/kernel/raw.rs:114:14 | 114 | /// [2]: crate::kernel::Kernel::exit_task#safety | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------- | | | invalid anchor
1 parent 432904d commit dc55bd4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/r3_core/src/kernel/raw.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ pub unsafe trait KernelBase: fmt::Debug + Copy + Sized + 'static {
5555
///
5656
/// # Safety
5757
///
58-
/// See the [Safety][2] section of `Kernel::release_cpu_lock`'s
58+
/// See the [Safety][1] section of `Kernel::release_cpu_lock`'s
5959
/// documentation.
6060
///
6161
/// [1]: crate::kernel::Kernel::release_cpu_lock
62-
/// [2]: crate::kernel::Kernel::release_cpu_lock#safety
6362
unsafe fn raw_release_cpu_lock() -> Result<(), CpuLockError>;
6463

6564
/// Return a flag indicating whether CPU Lock is currently active.
@@ -69,11 +68,10 @@ pub unsafe trait KernelBase: fmt::Debug + Copy + Sized + 'static {
6968
///
7069
/// # Safety
7170
///
72-
/// See the [Safety][2] section of `Kernel::unboost_priority`'s
71+
/// See the [Safety][1] section of `Kernel::unboost_priority`'s
7372
/// documentation.
7473
///
7574
/// [1]: crate::kernel::Kernel::unboost_priority
76-
/// [2]: crate::kernel::Kernel::unboost_priority#safety
7775
unsafe fn raw_unboost_priority() -> Result<(), BoostPriorityError>;
7876

7977
/// Implements [`Kernel::is_priority_boost_active`][1].
@@ -107,11 +105,10 @@ pub unsafe trait KernelBase: fmt::Debug + Copy + Sized + 'static {
107105
///
108106
/// # Safety
109107
///
110-
/// See the [Safety][2] section of `Kernel::exit_task`'s
108+
/// See the [Safety][1] section of `Kernel::exit_task`'s
111109
/// documentation.
112110
///
113111
/// [1]: crate::kernel::Kernel::exit_task
114-
/// [2]: crate::kernel::Kernel::exit_task#safety
115112
unsafe fn raw_exit_task() -> Result<!, ExitTaskError>;
116113

117114
/// Implements [`Kernel::park`][1].

0 commit comments

Comments
 (0)