mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Fix lifetime bound on From
impl for NonSendMut
-> Mut
(#5560)
# Objective Fixes #5456
This commit is contained in:
parent
13b4a7daaa
commit
765e8d7dca
1 changed files with 1 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue