fix: custom protocol receiver type
This commit is contained in:
1 parent
6e4ed9e351
commit
22308eb26a
1 file changed
+1
-1
@@ -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,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user