From fab17938b7086d35e80ad374749b19138527a693 Mon Sep 17 00:00:00 2001 From: Maccesch Date: Wed, 3 Aug 2022 13:46:58 +0100 Subject: [PATCH] fixes #5456 --- crates/bevy_ecs/src/change_detection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/change_detection.rs b/crates/bevy_ecs/src/change_detection.rs index a93ec510778ba..97882f22e1e7a 100644 --- a/crates/bevy_ecs/src/change_detection.rs +++ b/crates/bevy_ecs/src/change_detection.rs @@ -217,7 +217,7 @@ change_detection_impl!(NonSendMut<'a, T>, T,); impl_into_inner!(NonSendMut<'a, T>, T,); impl_debug!(NonSendMut<'a, T>,); -impl<'a, T: Resource> From> for Mut<'a, T> { +impl<'a, T: 'static> From> for Mut<'a, T> { /// Convert this `NonSendMut` into a `Mut`. This allows keeping the change-detection feature of `Mut` /// while losing the specificity of `NonSendMut`. fn from(other: NonSendMut<'a, T>) -> Mut<'a, T> {