1
0
Эх сурвалжийг харах

fix: custom protocol receiver type

Jonathan Kelley 3 жил өмнө
parent
commit
22308eb26a

+ 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,
     {