(weak: Weak<MainWindow>)
| 29 | } |
| 30 | |
| 31 | pub(crate) fn from_weak(weak: Weak<MainWindow>) -> Self { |
| 32 | if let Some(window) = weak.upgrade() { |
| 33 | AutoConfig { |
| 34 | delay: window.get_delay(), |
| 35 | is_wait: window.get_is_wait(), |
| 36 | } |
| 37 | } else { |
| 38 | unreachable!() |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | impl Executor { |
nothing calls this directly
no outgoing calls
no test coverage detected