This commit is contained in:
serzhiio committed 2023-05-28 20:24:39 +04:00
1 parent 0df6a8f2ac
commit 0439072a45
1 file changed
+1 -2
+1 -2
View File
@@ -4,7 +4,6 @@ use std::{
cell::{Ref, RefCell, RefMut}, cell::{Ref, RefCell, RefMut},
rc::Rc, rc::Rc,
}; };
use std::ops::DerefMut;
/// ///
/// ///
@@ -74,7 +73,7 @@ impl<T: 'static> UseAtomRef<T> {
/// This is silent operation /// This is silent operation
/// call `.force_update()` manually if required /// call `.force_update()` manually if required
pub fn with_mut_silent(&self, cb: impl FnOnce(&mut T)) { pub fn with_mut_silent(&self, cb: impl FnOnce(&mut T)) {
cb(self.write_silent().deref_mut()) cb(&mut *self.write_silent())
} }
pub fn write(&self) -> RefMut<T> { pub fn write(&self) -> RefMut<T> {