Merge pull request #44 from xTeKc/master

Update editions and closure
This commit is contained in:
YuKun Liu 2022-06-14 11:28:09 +08:00 committed by GitHub
commit d7d4699606
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
name = "dioxus-cli"
version = "0.1.4"
authors = ["Jonathan Kelley"]
edition = "2018"
edition = "2021"
description = "CLI tool for developing, testing, and publishing Dioxus apps"
license = "MIT/Apache-2.0"

View file

@ -1,8 +1,8 @@
version = "Two"
edition = "2018"
edition = "2021"
imports_granularity = "Crate"
#use_small_heuristics = "Max"
#control_brace_style = "ClosingNextLine"
normalize_comments = true
format_code_in_doc_comments = true
format_code_in_doc_comments = true

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