Jelajahi Sumber

fix: custom protocol receiver type

Jonathan Kelley 3 tahun lalu
induk
melakukan
22308eb26a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      packages/desktop/src/cfg.rs

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

@@ -71,7 +71,7 @@ impl DesktopConfig {
         self
         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
     where
         F: Fn(&HttpRequest) -> WryResult<HttpResponse> + 'static,
         F: Fn(&HttpRequest) -> WryResult<HttpResponse> + 'static,
     {
     {