From 5dc28d3d6b30b6cf8ea1ac9fab160c1fbe8080a6 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Thu, 20 Jul 2023 05:52:01 +0100 Subject: [PATCH] update syn and darling for multipart derives --- actix-multipart-derive/CHANGES.md | 1 + actix-multipart-derive/Cargo.toml | 4 ++-- actix-web-codegen/src/route.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/actix-multipart-derive/CHANGES.md b/actix-multipart-derive/CHANGES.md index caf75aeb3..8a78900ec 100644 --- a/actix-multipart-derive/CHANGES.md +++ b/actix-multipart-derive/CHANGES.md @@ -2,6 +2,7 @@ ## Unreleased +- Update `syn` dependency to `2`. - Minimum supported Rust version (MSRV) is now 1.65 due to transitive `time` dependency. ## 0.6.0 - 2023-02-26 diff --git a/actix-multipart-derive/Cargo.toml b/actix-multipart-derive/Cargo.toml index aca6de84a..41e687e50 100644 --- a/actix-multipart-derive/Cargo.toml +++ b/actix-multipart-derive/Cargo.toml @@ -17,11 +17,11 @@ all-features = true proc-macro = true [dependencies] -darling = "0.14" +darling = "0.20" parse-size = "1" proc-macro2 = "1" quote = "1" -syn = "1" +syn = "2" [dev-dependencies] actix-multipart = "0.6" diff --git a/actix-web-codegen/src/route.rs b/actix-web-codegen/src/route.rs index 108964a43..525a1c8ba 100644 --- a/actix-web-codegen/src/route.rs +++ b/actix-web-codegen/src/route.rs @@ -35,7 +35,7 @@ impl syn::parse::Parse for RouteArgs { }); } - // separator + // advance past comma separator input.parse::()?; // if next char is a literal, assume that it is a string and show multi-path error