Skip to content

Commit f4f353b

Browse files
author
Sven Van Asbroeck
committed
rust/kernel/traits: fix rustdoc warnings
A previous commit (#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 <[email protected]>
1 parent 698569d commit f4f353b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kernel/traits.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use alloc::{alloc::AllocError, sync::Arc};
88

99
/// Trait which provides a fallible version of `pin()` for pointer types.
1010
///
11-
/// Common pointer types which implement a `pin()` method include [`Box`], [`Arc`] and [`Rc`].
11+
/// Common pointer types which implement a `pin()` method include [`Box`](alloc::boxed::Box) and [`Arc`].
1212
pub trait TryPin<P: Deref> {
1313
/// Constructs a new `Pin<pointer<T>>`. If `T` does not implement [`Unpin`], then data
1414
/// will be pinned in memory and unable to be moved. An error will be returned

0 commit comments

Comments
 (0)