rt: relaxed trait bounds for LinkedList::into_guarded (#6630)

This commit is contained in:
Weijia Jiang
2024-06-13 08:50:28 +02:00
committed by GitHub
parent 479f736935
commit a865ca139a
+1 -1
View File
@@ -351,7 +351,7 @@ feature! {
_marker: PhantomData<*const L>,
}
impl<U, L: Link<Handle = NonNull<U>>> LinkedList<L, L::Target> {
impl<L: Link> LinkedList<L, L::Target> {
/// Turns a linked list into the guarded version by linking the guard node
/// with the head and tail nodes. Like with other nodes, you should guarantee
/// that the guard node is pinned in memory.