Use is_alive()
Browse files at this commit887ca971ab1ffcb1f1b217315b4eb37d9041253bParent: 4cc195b1 changed file +1 -1
- src/ui/hotkey_overlay.rs +1 -1
src/ui/hotkey_overlay.rsmodified+1 -1
| @@ -87,7 +87,7 @@ impl HotkeyOverlay { | |||
| 87 | let output_size = output_size(output); | 87 | let output_size = output_size(output); |
| 88 | 88 | ||
| 89 | let mut buffers = self.buffers.borrow_mut(); | 89 | let mut buffers = self.buffers.borrow_mut(); |
| 90 | - buffers.retain(|output, _| output.upgrade().is_some()); | 90 | + buffers.retain(|output, _| output.is_alive()); |
| 91 | 91 | ||
| 92 | // FIXME: should probably use the working area rather than view size. | 92 | // FIXME: should probably use the working area rather than view size. |
| 93 | let weak = output.downgrade(); | 93 | let weak = output.downgrade(); |