Skip to content

Commit 646c77a

Browse files
committed
Arc -> Rc
1 parent c4f077f commit 646c77a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/local_executor.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ impl<'a> LocalExecutor<'a> {
327327
unsafe { &*self.state_ptr() }
328328
}
329329

330-
// Clones the inner state Arc
330+
// Clones the inner state Rc
331331
#[inline]
332332
fn state_as_rc(&self) -> Rc<State> {
333333
// SAFETY: So long as a LocalExecutor lives, it's state pointer will always be a valid
334-
// Arc when accessed through state_ptr.
334+
// Rc when accessed through state_ptr.
335335
let rc = unsafe { Rc::from_raw(self.state_ptr()) };
336336
let clone = rc.clone();
337337
std::mem::forget(rc);
@@ -346,8 +346,8 @@ impl Drop for LocalExecutor<'_> {
346346
return;
347347
}
348348

349-
// SAFETY: As ptr is not null, it was allocated via Arc::new and converted
350-
// via Arc::into_raw in state_ptr.
349+
// SAFETY: As ptr is not null, it was allocated via Rc::new and converted
350+
// via Rc::into_raw in state_ptr.
351351
let state = unsafe { Rc::from_raw(ptr) };
352352

353353
{
@@ -585,7 +585,7 @@ fn debug_executor(
585585
}
586586

587587
// SAFETY: If the state pointer is not null, it must have been
588-
// allocated properly by Arc::new and converted via Arc::into_raw
588+
// allocated properly by Rc::new and converted via Rc::into_raw
589589
// in state_ptr.
590590
let state = unsafe { &*ptr };
591591

0 commit comments

Comments
 (0)