Skip to content

Commit d4198d7

Browse files
committed
Remove comment in with_graph
1 parent 9316592 commit d4198d7

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

rust/rubydex-sys/src/graph_api.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ pub fn with_graph<F, T>(pointer: GraphPointer, action: F) -> T
4343
where
4444
F: FnOnce(&Graph) -> T,
4545
{
46-
// Create a shared reference directly from the raw pointer. This avoids Box::from_raw,
47-
// which would imply unique ownership and create a temporary &mut Graph — UB when
48-
// multiple Ractors read the same shared, frozen graph concurrently.
4946
let graph = unsafe { &*pointer.cast::<Graph>() };
5047
action(graph)
5148
}

0 commit comments

Comments
 (0)