From 70171980cc33ac62fae17efcd28b8551e2fe356d Mon Sep 17 00:00:00 2001 From: nabbisen Date: Mon, 11 Sep 2023 21:03:50 +0900 Subject: [PATCH] fix typo in axum-macros README: according to Cargo.toml msrv is 1.60 (#2204) --- axum-macros/Cargo.toml | 2 +- axum-macros/src/axum_test.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/axum-macros/Cargo.toml b/axum-macros/Cargo.toml index a087aff4..561ee520 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" diff --git a/axum-macros/src/axum_test.rs b/axum-macros/src/axum_test.rs index a86227b3..bc664fd8 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)]