Skip to content

Commit

Permalink
fix typo in axum-macros README: according to Cargo.toml msrv is 1.60 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nabbisen authored Sep 11, 2023
1 parent 3f5c907 commit 7017198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion axum-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion axum-macros/src/axum_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn replace_nest_with_nest_service(mut item_fn: ItemFn) -> Option<ItemFn> {
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)]
Expand Down

0 comments on commit 7017198

Please sign in to comment.