Skip to content

Commit

Permalink
Fix lifetime bound on From impl for NonSendMut -> Mut (bevyengi…
Browse files Browse the repository at this point in the history
…ne#5560)

# Objective

Fixes bevyengine#5456
  • Loading branch information
maccesch authored and ItsDoot committed Feb 1, 2023
1 parent 7164e3a commit 11db0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/change_detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<NonSendMut<'a, T>> for Mut<'a, T> {
impl<'a, T: 'static> From<NonSendMut<'a, T>> 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> {
Expand Down

0 comments on commit 11db0b6

Please sign in to comment.