From 40a4524a4dbf9146c3633de0ddde243e1b58989c Mon Sep 17 00:00:00 2001 From: Hrvoje Niksic Date: Wed, 24 Jan 2024 11:17:27 +0100 Subject: [PATCH] Remove redundant link The redundant link emits a warning in `cargo doc`. --- src/checked.rs | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/checked.rs b/src/checked.rs index 722c31d..ae45823 100644 --- a/src/checked.rs +++ b/src/checked.rs @@ -450,7 +450,7 @@ pub fn pod_read_unaligned(bytes: &[u8]) -> T { /// /// ## Panics /// -/// * This is like [`try_cast`](try_cast), but will panic on a size mismatch. +/// * This is like [`try_cast`], but will panic on a size mismatch. #[inline] pub fn cast(a: A) -> B { match try_cast(a) { diff --git a/src/lib.rs b/src/lib.rs index c593de9..fb99c34 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -304,7 +304,7 @@ pub fn try_from_bytes_mut( /// /// ## Panics /// -/// * This is like [`try_cast`](try_cast), but will panic on a size mismatch. +/// * This is like [`try_cast`], but will panic on a size mismatch. #[inline] pub fn cast(a: A) -> B { unsafe { internal::cast(a) }