浏览代码

fix clippy lint in desktop

Evan Almloff 2 年之前
父节点
当前提交
6653d48614
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/desktop/src/lib.rs

+ 2 - 0
packages/desktop/src/lib.rs

@@ -307,6 +307,8 @@ struct WebviewHandler {
     dom: VirtualDom,
     webview: Rc<wry::webview::WebView>,
     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,
 }