From 6f5bdcc6750d6aa39e4cc7b942568311c845dcd9 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Mon, 9 Dec 2024 22:58:17 +0100 Subject: [PATCH] Fix rustdoc link to ArenaItem on Sandboxed::new --- reactive_graph/src/owner/arena.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/reactive_graph/src/owner/arena.rs b/reactive_graph/src/owner/arena.rs index e016f90f8b..9a3ea6083c 100644 --- a/reactive_graph/src/owner/arena.rs +++ b/reactive_graph/src/owner/arena.rs @@ -121,8 +121,11 @@ pub mod sandboxed { } impl Sandboxed { - /// Wraps the given [`Future`], ensuring that any [`ArenaItem`] created while it is being - /// polled will be associated with the same arena that was active when this was called. + /// Wraps the given [`Future`], ensuring that any [`ArenaItem`][item] created while it is + /// being polled will be associated with the same arena that was active when this was + /// called. + /// + /// [item]:[crate::owner::ArenaItem] pub fn new(inner: T) -> Self { let arena = MAP.with_borrow(|n| n.as_ref().and_then(Weak::upgrade)); Self { arena, inner }