Skip to content

Commit 38f270c

Browse files
committed
fix private interaface issue
1 parent 1eb54d0 commit 38f270c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/bevy_mod_scripting_core/src/extractors.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,11 @@ unsafe impl<T: Resource + Default> SystemParam for ResScope<'_, T> {
115115
///
116116
/// # Safety
117117
/// - unsafe to use this in a way which violates the invariants on [`ResScope`].
118+
/// - This is hidden from docs for a reason, rust doesn't allow expressing `type signature unsafety`
119+
/// - It is only safe to use when other system parameters do not create aliasing references inside their `get_param` calls
118120
#[derive(SystemParam)]
119121
#[doc(hidden)]
120-
pub(crate) struct EventReaderScope<'s, T: Event> {
122+
pub struct EventReaderScope<'s, T: Event> {
121123
events: ResScope<'s, Events<T>>,
122124
reader: Local<'s, EventCursor<T>>,
123125
}

0 commit comments

Comments
 (0)