From 28b1388e7231bac1e241c07947f91c4882fe001e Mon Sep 17 00:00:00 2001 From: nabbisen Date: Tue, 5 Sep 2023 22:47:39 +0900 Subject: [PATCH 1/2] update MSRV of axum-macros: 1.60 -> 1.63 --- axum-macros/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axum-macros/Cargo.toml b/axum-macros/Cargo.toml index a087aff4de..561ee520c6 100644 --- a/axum-macros/Cargo.toml +++ b/axum-macros/Cargo.toml @@ -2,7 +2,7 @@ categories = ["asynchronous", "network-programming", "web-programming"] description = "Macros for axum" edition = "2021" -rust-version = "1.60" +rust-version = "1.63" homepage = "https://github.com/tokio-rs/axum" keywords = ["axum"] license = "MIT" From fbee21d952936aac5f79fdb6cb50adcef5d12b1d Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Mon, 11 Sep 2023 13:51:21 +0200 Subject: [PATCH 2/2] fix lint --- axum-macros/src/axum_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axum-macros/src/axum_test.rs b/axum-macros/src/axum_test.rs index a86227b374..bc664fd8f3 100644 --- a/axum-macros/src/axum_test.rs +++ b/axum-macros/src/axum_test.rs @@ -27,7 +27,7 @@ fn replace_nest_with_nest_service(mut item_fn: ItemFn) -> Option { let mut visitor = NestToNestService::default(); syn::visit_mut::visit_item_fn_mut(&mut visitor, &mut item_fn); - (visitor.count > 0).then(|| item_fn) + (visitor.count > 0).then_some(item_fn) } #[derive(Default)]