force closure to take ownership

This commit is contained in:
xTeKc authored and GitHub committed 2022-06-12 03:35:25 -04:00
1 parent f287e75761
commit bfab711010
1 file changed
+1 -1
+1 -1
View File
@@ -79,7 +79,7 @@ pub async fn startup(config: CrateConfig) -> Result<()> {
let file_service_config = config.clone();
let file_service = ServiceBuilder::new()
.and_then(
|response: Response<ServeFileSystemResponseBody>| async move {
move |response: Response<ServeFileSystemResponseBody>| async move {
let response = if file_service_config
.dioxus_config
.web