From 765e8d7dca34fcec0718da453802e047ea07803d Mon Sep 17 00:00:00 2001 From: Marc-Stefan Cassola Date: Thu, 4 Aug 2022 22:09:51 +0000 Subject: [PATCH] Fix lifetime bound on `From` impl for `NonSendMut` -> `Mut` (#5560) # Objective 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 a93ec51077..97882f22e1 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> {