WIP
This commit is contained in:
+7
-1
@@ -23,7 +23,7 @@ use std::{
|
||||
fmt::{self, Debug},
|
||||
hash::{Hash, Hasher},
|
||||
marker::PhantomData,
|
||||
ops::Deref,
|
||||
ops::{Deref, DerefMut},
|
||||
path::{Path, PathBuf},
|
||||
rc::{self, Rc},
|
||||
sync::{Arc, Weak},
|
||||
@@ -2110,6 +2110,12 @@ impl<M> Deref for ViewContext<'_, M> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<M> DerefMut for ViewContext<'_, M> {
|
||||
fn deref_mut(&mut self) -> &mut Self::Target {
|
||||
&mut self.app
|
||||
}
|
||||
}
|
||||
|
||||
impl<M> AsMut<MutableAppContext> for ViewContext<'_, M> {
|
||||
fn as_mut(&mut self) -> &mut MutableAppContext {
|
||||
self.app
|
||||
|
||||
Reference in New Issue
Block a user