Add debug information to borrows and ownership in signals

This commit is contained in:
Evan Almloff committed 2023-08-21 14:23:02 -05:00
1 parent d8704a0447
commit df85b25548
6 files changed
+497 -75

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ impl Effect {
/// Run the effect callback immediately. Returns `true` if the effect was run. Returns `false` is the effect is dead.
pub fn try_run(&self) {
if let Some(mut callback) = self.callback.try_write() {
if let Ok(mut callback) = self.callback.try_write() {
{
get_effect_stack().effects.borrow_mut().push(*self);
}