From f4f353bdd5e99f9ea732c55132c614a828c2a345 Mon Sep 17 00:00:00 2001 From: Sven Van Asbroeck Date: Fri, 28 May 2021 13:25:19 -0400 Subject: [PATCH] rust/kernel/traits: fix rustdoc warnings A previous commit (Rust-for-Linux#292) introduced rustdoc warnings. Fix rustdoc links to eliminate these warnings. Remove mention of `Rc`, as it's not currently used anywhere in the Rust kernel code. Signed-off-by: Sven Van Asbroeck --- rust/kernel/traits.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/traits.rs b/rust/kernel/traits.rs index 79e121027b3046..39a43169bf70e6 100644 --- a/rust/kernel/traits.rs +++ b/rust/kernel/traits.rs @@ -8,7 +8,7 @@ use alloc::{alloc::AllocError, sync::Arc}; /// Trait which provides a fallible version of `pin()` for pointer types. /// -/// Common pointer types which implement a `pin()` method include [`Box`], [`Arc`] and [`Rc`]. +/// Common pointer types which implement a `pin()` method include [`Box`](alloc::boxed::Box) and [`Arc`]. pub trait TryPin { /// Constructs a new `Pin>`. If `T` does not implement [`Unpin`], then data /// will be pinned in memory and unable to be moved. An error will be returned