瀏覽代碼

fix: custom protocol receiver type

Jonathan Kelley 3 年之前
父節點
當前提交
22308eb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/desktop/src/cfg.rs

+ 1 - 1
packages/desktop/src/cfg.rs

@@ -71,7 +71,7 @@ impl DesktopConfig {
         self
     }
 
-    pub fn with_custom_protocol<F>(mut self, name: String, handler: F) -> Self
+    pub fn with_custom_protocol<F>(&mut self, name: String, handler: F) -> &mut Self
     where
         F: Fn(&HttpRequest) -> WryResult<HttpResponse> + 'static,
     {