From 6653d4861421158a6c28121bea240864e7af6f0b Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Tue, 11 Apr 2023 11:34:33 -0500 Subject: [PATCH] fix clippy lint in desktop --- packages/desktop/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/desktop/src/lib.rs b/packages/desktop/src/lib.rs index 434cf3305..cdb592f72 100644 --- a/packages/desktop/src/lib.rs +++ b/packages/desktop/src/lib.rs @@ -307,6 +307,8 @@ struct WebviewHandler { dom: VirtualDom, webview: Rc, waker: Waker, + // This is nessisary because of a bug in wry. Wry assumes the webcontext is alive for the lifetime of the webview. We need to keep the webcontext alive, otherwise the webview will crash + #[allow(dead_code)] web_context: WebContext, }