fix: custom protocol receiver type

This commit is contained in:
Jonathan Kelley committed 2022-01-27 17:00:40 -05:00
1 parent 6e4ed9e351
commit 22308eb26a
1 file changed
+1 -1
+1 -1
View File
@@ -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,
{