mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
fix typo in axum-macros README: according to Cargo.toml msrv is 1.60 (#2204)
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
categories = ["asynchronous", "network-programming", "web-programming"]
|
categories = ["asynchronous", "network-programming", "web-programming"]
|
||||||
description = "Macros for axum"
|
description = "Macros for axum"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.60"
|
rust-version = "1.63"
|
||||||
homepage = "https://github.com/tokio-rs/axum"
|
homepage = "https://github.com/tokio-rs/axum"
|
||||||
keywords = ["axum"]
|
keywords = ["axum"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ fn replace_nest_with_nest_service(mut item_fn: ItemFn) -> Option<ItemFn> {
|
|||||||
let mut visitor = NestToNestService::default();
|
let mut visitor = NestToNestService::default();
|
||||||
syn::visit_mut::visit_item_fn_mut(&mut visitor, &mut item_fn);
|
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)]
|
#[derive(Default)]
|
||||||
|
|||||||
Reference in New Issue
Block a user